Example #1
0
 /** Compute y <- x (copy a matrix) */
 public static DoubleMatrix copy(DoubleMatrix x, DoubleMatrix y) {
   // NativeBlas.dcopy(x.length, x.data, 0, 1, y.data, 0, 1);
   JavaBlas.rcopy(x.length, x.data, 0, 1, y.data, 0, 1);
   return y;
 }
Example #2
0
 /** Compute y <- x (copy a matrix) */
 public static FloatMatrix copy(FloatMatrix x, FloatMatrix y) {
   // NativeBlas.scopy(x.length, x.data, 0, 1, y.data, 0, 1);
   JavaBlas.rcopy(x.length, x.data, 0, 1, y.data, 0, 1);
   return y;
 }