@Test public void testSolve() { System.out.println("solve"); NLMatrix a = new NLMatrix(A); LU result = a.lu(); double[] x = B.clone(); result.solve(x); assertEquals(X.length, x.length); for (int i = 0; i < X.length; i++) { assertEquals(X[i], x[i], 1E-7); } }
@Override public void solve(double[] b) { DenseMatrix B = Matrix.of(b); solve(B); }
LU extends smile.math.matrix.LU { @Override public void solve(double[] b) { DenseMatrix B = Matrix.of(b); solve(B); } }
LU extends smile.math.matrix.LU { @Override public void solve(double[] b) { DenseMatrix B = Matrix.of(b); solve(B); } LU(NLMatrix lu, int[] piv, boolean singular); }
LU extends smile.math.matrix.LU { @Override public void solve(double[] b) { DenseMatrix B = Matrix.of(b); solve(B); } LU(NLMatrix lu, int[] piv, boolean singular); @Override DenseMatrix inverse(); @Override void solve(double[] b); @Override void solve(DenseMatrix B); }
LU extends smile.math.matrix.LU { @Override public void solve(double[] b) { DenseMatrix B = Matrix.of(b); solve(B); } LU(NLMatrix lu, int[] piv, boolean singular); @Override DenseMatrix inverse(); @Override void solve(double[] b); @Override void solve(DenseMatrix B);  }