示例#1
0
 /** Compute x^T * y (dot product) */
 public static float dot(FloatMatrix x, FloatMatrix y) {
   // return NativeBlas.sdot(x.length, x.data, 0, 1, y.data, 0, 1);
   return JavaBlas.rdot(x.length, x.data, 0, 1, y.data, 0, 1);
 }
示例#2
0
 /** Compute x^T * y (dot product) */
 public static double dot(DoubleMatrix x, DoubleMatrix y) {
   // return NativeBlas.ddot(x.length, x.data, 0, 1, y.data, 0, 1);
   return JavaBlas.rdot(x.length, x.data, 0, 1, y.data, 0, 1);
 }