/** * Constructs and returns the LU-decomposition of the given matrix. * * @param matrix * sparse matrix * @param order * ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'), * 2: amd(S'*S), 3: amd(A'*A) * @return the LU-decomposition of the given matrix */ public SparseDoubleLUDecomposition lu(DoubleMatrix2D matrix, int order) { return new CSparseDoubleLUDecomposition(matrix, order, true); }
/** * Constructs and returns the LU-decomposition of the given matrix. * * @param matrix * sparse matrix * @param order * ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'), * 2: amd(S'*S), 3: amd(A'*A) * @return the LU-decomposition of the given matrix */ public SparseDoubleLUDecomposition lu(DoubleMatrix2D matrix, int order) { return new CSparseDoubleLUDecomposition(matrix, order, true); }