/** * @param x */ public void choldowndate(double[] x) { choldowndate(x,true); }
/** * see {@link UpdateableCholeskyDecomposition#choldowndate(double[][], double[])} * @param x * @param b */ public void choldowndate(double[] x, boolean b) { if(b) x = x.clone(); Matrix L = this.getL(); // work is done on an upper triangular matrix double[][] data = L.transpose().getArray(); choldowndate(data, x); // Make the output lower triangular again int Ll = L.getRowDimension(); L.setMatrix(0, Ll-1, 0, Ll-1, new Matrix(data, Ll, Ll).transpose()); }