/** 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; }
/** 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; }