예제 #1
0
 public unsafe override float Dot(float[] a, float[] b)
 {
     int[] indx = new int[a.Length];
     for (int i = 0; i < a.Length; i++)
     {
         indx[i] = i;
     }
     return(CBLASNative.cblas_sdoti(a.Length, a, indx, b));
 }
예제 #2
0
 public unsafe override double Dot(double[] a, double[] b)
 {
     int[] indx = new int[a.Length];
     for (int i = 0; i < a.Length; i++)
     {
         indx[i] = i;
     }
     return(CBLASNative.cblas_ddoti(a.Length, a, indx, b));
 }