Exemplo n.º 1
0
Arquivo: norm.cs Projeto: 0xCM/z0
 public static double norm(RowVector256 <double> X)
 => CBLAS.cblas_dnrm2(X.Length, ref head(X), 1);
Exemplo n.º 2
0
Arquivo: iamin.cs Projeto: 0xCM/z0
 public static int iamin(RowVector256 <float> X)
 => (int)CBLAS.cblas_isamin(X.Length, ref head(X), 1);
Exemplo n.º 3
0
Arquivo: iamin.cs Projeto: 0xCM/z0
 public static int iamin(RowVector256 <double> X)
 => (int)CBLAS.cblas_idamin(X.Length, ref head(X), 1);
Exemplo n.º 4
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 5
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 6
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 7
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 8
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 9
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 10
0
Arquivo: axpy.cs Projeto: 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);
 }
Exemplo n.º 11
0
 public static double asum(RowVector256 <double> X)
 => CBLAS.cblas_dasum(X.Length, ref head(X), 1);
Exemplo n.º 12
0
Arquivo: axpy.cs Projeto: 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);
 }
Exemplo n.º 13
0
Arquivo: dot.cs Projeto: 0xCM/z0
 public static double dot(RowVector256 <double> x, RowVector256 <double> y)
 => dot(x.Unblocked, y.Unblocked);
Exemplo n.º 14
0
Arquivo: dot.cs Projeto: 0xCM/z0
 public static float dot(RowVector256 <float> x, RowVector256 <float> y)
 => dot(x.Unblocked, y.Unblocked);
Exemplo n.º 15
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 16
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 17
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 18
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 19
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 20
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 21
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 22
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 23
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 24
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 25
0
Arquivo: scale.cs Projeto: 0xCM/z0
 public static void scale(float a, RowVector256 <float> X)
 => CBLAS.cblas_sscal(X.Length, a, ref head(X), 1);
Exemplo n.º 26
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 27
0
Arquivo: iamin.cs Projeto: 0xCM/z0
 public static float amin(RowVector256 <float> X)
 => X[iamin(X)];
Exemplo n.º 28
0
Arquivo: vml.cs Projeto: 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);
 }
Exemplo n.º 29
0
Arquivo: iamin.cs Projeto: 0xCM/z0
 public static double amin(RowVector256 <double> X)
 => X[iamin(X)];
Exemplo n.º 30
0
Arquivo: norm.cs Projeto: 0xCM/z0
 public static float norm(RowVector256 <float> X)
 => CBLAS.cblas_snrm2(X.Length, ref head(X), 1);