Пример #1
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);
 }
Пример #2
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);
 }