예제 #1
0
 /** Compute x <-> y (swap two matrices) */
 public static DoubleMatrix swap(DoubleMatrix x, DoubleMatrix y) {
   // NativeBlas.dswap(x.length, x.data, 0, 1, y.data, 0, 1);
   JavaBlas.rswap(x.length, x.data, 0, 1, y.data, 0, 1);
   return y;
 }
예제 #2
0
 /** Compute x <-> y (swap two matrices) */
 public static FloatMatrix swap(FloatMatrix x, FloatMatrix y) {
   // NativeBlas.sswap(x.length, x.data, 0, 1, y.data, 0, 1);
   JavaBlas.rswap(x.length, x.data, 0, 1, y.data, 0, 1);
   return y;
 }