예제 #1
0
파일: norm.cs 프로젝트: 0xCM/z0
 public static double norm(RowVector256 <double> X)
 => CBLAS.cblas_dnrm2(X.Length, ref head(X), 1);
예제 #2
0
파일: iamin.cs 프로젝트: 0xCM/z0
 public static int iamin(RowVector256 <float> X)
 => (int)CBLAS.cblas_isamin(X.Length, ref head(X), 1);
예제 #3
0
파일: iamin.cs 프로젝트: 0xCM/z0
 public static int iamin(RowVector256 <double> X)
 => (int)CBLAS.cblas_idamin(X.Length, ref head(X), 1);
예제 #4
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> log10(RowVector256 <float> src, ref RowVector256 <float> dst)
 {
     VmlImport.vsLog10(src.Length, ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #5
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> erfcInv(RowVector256 <float> src, ref RowVector256 <float> dst)
 {
     VmlImport.vsErfcInv(src.Length, ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #6
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> sub(RowVector256 <float> lhs, RowVector256 <float> rhs, ref RowVector256 <float> dst)
 {
     VmlImport.vsSub(length(lhs, rhs), ref head(lhs), ref head(rhs), ref head(dst));
     return(ref dst);
 }
예제 #7
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> pow(RowVector256 <double> src, double exp, ref RowVector256 <double> dst)
 {
     VmlImport.vdPowx(length(src, dst), ref head(src), exp, ref head(dst));
     return(ref dst);
 }
예제 #8
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> cdfNorm(RowVector256 <float> src, ref RowVector256 <float> dst)
 {
     VmlImport.vsCdfNorm(src.Length, ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #9
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> cdfNormInv(RowVector256 <double> src, ref RowVector256 <double> dst)
 {
     VmlImport.vdCdfNormInv(src.Length, ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #10
0
파일: axpy.cs 프로젝트: 0xCM/z0
 public static void axpy(double a, RowVector256 <double> X, RowVector256 <double> Y, ref RowVector256 <double> Z)
 {
     Y.CopyTo(ref Z);
     CBLAS.cblas_daxpy(length(X, Y), a, ref head(X), 1, ref head(Z), 1);
 }
예제 #11
0
 public static double asum(RowVector256 <double> X)
 => CBLAS.cblas_dasum(X.Length, ref head(X), 1);
예제 #12
0
파일: axpy.cs 프로젝트: 0xCM/z0
 public static void axpy(float a, RowVector256 <float> X, RowVector256 <float> Y, ref RowVector256 <float> Z)
 {
     Y.CopyTo(ref Z);
     CBLAS.cblas_saxpy(length(X, Y), a, ref head(X), 1, ref head(Z), 1);
 }
예제 #13
0
파일: dot.cs 프로젝트: 0xCM/z0
 public static double dot(RowVector256 <double> x, RowVector256 <double> y)
 => dot(x.Unblocked, y.Unblocked);
예제 #14
0
파일: dot.cs 프로젝트: 0xCM/z0
 public static float dot(RowVector256 <float> x, RowVector256 <float> y)
 => dot(x.Unblocked, y.Unblocked);
예제 #15
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> copySign(RowVector256 <double> a, RowVector256 <double> b, ref RowVector256 <double> dst)
 {
     VmlImport.vdCopySign(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #16
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> hypot(RowVector256 <float> a, RowVector256 <float> b, ref RowVector256 <float> dst)
 {
     VmlImport.vsHypot(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #17
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> next(RowVector256 <double> src, ref RowVector256 <double> dst)
 {
     VmlImport.vdNextAfter(dst.Length, ref head(src), ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #18
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> hypot(RowVector256 <double> a, RowVector256 <double> b, ref RowVector256 <double> dst)
 {
     VmlImport.vdHypot(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #19
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> pow(RowVector256 <float> src, float exp, ref RowVector256 <float> dst)
 {
     VmlImport.vsPowx(length(src, dst), ref head(src), exp, ref head(dst));
     return(ref dst);
 }
예제 #20
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> truncRem(RowVector256 <float> src, RowVector256 <float> trunc, ref RowVector256 <float> rem)
 {
     VmlImport.vsModf(length(src, trunc), ref head(src), ref head(trunc), ref head(rem));
     return(ref rem);
 }
예제 #21
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> sub(RowVector256 <double> lhs, RowVector256 <double> rhs, ref RowVector256 <double> dst)
 {
     VmlImport.vdSub(length(lhs, rhs), ref head(lhs), ref head(rhs), ref head(dst));
     return(ref dst);
 }
예제 #22
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> truncRem(RowVector256 <double> lhs, RowVector256 <double> rhs, ref RowVector256 <double> dst)
 {
     VmlImport.vdModf(length(lhs, rhs), ref head(lhs), ref head(rhs), ref head(dst));
     return(ref dst);
 }
예제 #23
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> erfc(RowVector256 <double> src, ref RowVector256 <double> dst)
 {
     VmlImport.vdErfc(src.Length, ref head(src), ref head(dst));
     return(ref dst);
 }
예제 #24
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> minAbs(RowVector256 <float> a, RowVector256 <float> b, ref RowVector256 <float> dst)
 {
     VmlImport.vsMinMag(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #25
0
파일: scale.cs 프로젝트: 0xCM/z0
 public static void scale(float a, RowVector256 <float> X)
 => CBLAS.cblas_sscal(X.Length, a, ref head(X), 1);
예제 #26
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <double> minAbs(RowVector256 <double> a, RowVector256 <double> b, ref RowVector256 <double> dst)
 {
     VmlImport.vdMinMag(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #27
0
파일: iamin.cs 프로젝트: 0xCM/z0
 public static float amin(RowVector256 <float> X)
 => X[iamin(X)];
예제 #28
0
파일: vml.cs 프로젝트: 0xCM/z0
 public static ref RowVector256 <float> copySign(RowVector256 <float> a, RowVector256 <float> b, ref RowVector256 <float> dst)
 {
     VmlImport.vsCopySign(dst.Length, ref head(a), ref head(b), ref head(dst));
     return(ref dst);
 }
예제 #29
0
파일: iamin.cs 프로젝트: 0xCM/z0
 public static double amin(RowVector256 <double> X)
 => X[iamin(X)];
예제 #30
0
파일: norm.cs 프로젝트: 0xCM/z0
 public static float norm(RowVector256 <float> X)
 => CBLAS.cblas_snrm2(X.Length, ref head(X), 1);