@Test public void testAtxpy() { System.out.println("atxpy"); double[] d = new double[matrix.nrows()]; for (int i = 0; i < d.length; i++) d[i] = 1.0; matrix.atxpy(b, d); assertEquals(1.65, d[0], 1E-10); assertEquals(1.60, d[1], 1E-10); assertEquals(1.55, d[2], 1E-10); }
@Override public double[] atxpy(double[] x, double[] y) { BLAS.getInstance().dgemv(Transpose, nrows(), ncols(), 1.0, data(), ld(), x, 1, 1.0, y, 1); return y; }
NLMatrix extends JMatrix { @Override public double[] atxpy(double[] x, double[] y) { BLAS.getInstance().dgemv(Transpose, nrows(), ncols(), 1.0, data(), ld(), x, 1, 1.0, y, 1); return y; } }
NLMatrix extends JMatrix { @Override public double[] atxpy(double[] x, double[] y) { BLAS.getInstance().dgemv(Transpose, nrows(), ncols(), 1.0, data(), ld(), x, 1, 1.0, y, 1); return y; } NLMatrix(double[][] A);  NLMatrix(double[] A);  NLMatrix(int rows, int cols);  NLMatrix(int rows, int cols, double value);  NLMatrix(int rows, int cols, double[] value); }
NLMatrix extends JMatrix { @Override public double[] atxpy(double[] x, double[] y) { BLAS.getInstance().dgemv(Transpose, nrows(), ncols(), 1.0, data(), ld(), x, 1, 1.0, y, 1); return y; } NLMatrix(double[][] A);  NLMatrix(double[] A);  NLMatrix(int rows, int cols);  NLMatrix(int rows, int cols, double value);  NLMatrix(int rows, int cols, double[] value); @Override NLMatrix clone(); @Override double[] ax(double[] x, double[] y); @Override double[] axpy(double[] x, double[] y); @Override double[] axpy(double[] x, double[] y, double b); @Override double[] atx(double[] x, double[] y); @Override double[] atxpy(double[] x, double[] y); @Override double[] atxpy(double[] x, double[] y, double b); @Override NLMatrix ata(); @Override NLMatrix aat(); @Override NLMatrix abmm(DenseMatrix B); @Override NLMatrix abtmm(DenseMatrix B); @Override NLMatrix atbmm(DenseMatrix B); @Override NLMatrix atbtmm(DenseMatrix B); @Override NLMatrix transpose(); @Override LU lu(); @Override Cholesky cholesky(); @Override QR qr(); @Override SVD svd(); @Override double[] eig(); @Override EVD eigen(); }
NLMatrix extends JMatrix { @Override public double[] atxpy(double[] x, double[] y) { BLAS.getInstance().dgemv(Transpose, nrows(), ncols(), 1.0, data(), ld(), x, 1, 1.0, y, 1); return y; } NLMatrix(double[][] A);  NLMatrix(double[] A);  NLMatrix(int rows, int cols);  NLMatrix(int rows, int cols, double value);  NLMatrix(int rows, int cols, double[] value); @Override NLMatrix clone(); @Override double[] ax(double[] x, double[] y); @Override double[] axpy(double[] x, double[] y); @Override double[] axpy(double[] x, double[] y, double b); @Override double[] atx(double[] x, double[] y); @Override double[] atxpy(double[] x, double[] y); @Override double[] atxpy(double[] x, double[] y, double b); @Override NLMatrix ata(); @Override NLMatrix aat(); @Override NLMatrix abmm(DenseMatrix B); @Override NLMatrix abtmm(DenseMatrix B); @Override NLMatrix atbmm(DenseMatrix B); @Override NLMatrix atbtmm(DenseMatrix B); @Override NLMatrix transpose(); @Override LU lu(); @Override Cholesky cholesky(); @Override QR qr(); @Override SVD svd(); @Override double[] eig(); @Override EVD eigen();  }