cern.colt.matrix.tdouble.algo.decomposition
Class SparseDoubleCholeskyDecomposition
- java.lang.Object
-
- cern.colt.matrix.tdouble.algo.decomposition.SparseDoubleCholeskyDecomposition
-
public class SparseDoubleCholeskyDecomposition extends java.lang.ObjectFor a symmetric, positive definite matrix A, the Cholesky decomposition is a lower triangular matrix L so that A = L*L'; If the matrix is not symmetric positive definite, the IllegalArgumentException is thrown.
-
-
Constructor Summary
Constructors Constructor and Description SparseDoubleCholeskyDecomposition(DoubleMatrix2D A, int order)Constructs and returns a new Cholesky decomposition object for a sparse symmetric and positive definite matrix; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DoubleMatrix2DgetL()Returns the triangular factor, L.DoubleMatrix2DgetLtranspose()Returns the triangular factor, L'.Dcs_common.DcssgetSymbolicAnalysis()Returns a copy of the symbolic Cholesky analysis objectvoidsolve(DoubleMatrix1D b)Solves A*x = b(in-place).
-
-
-
Constructor Detail
-
SparseDoubleCholeskyDecomposition
public SparseDoubleCholeskyDecomposition(DoubleMatrix2D A, int order)
Constructs and returns a new Cholesky decomposition object for a sparse symmetric and positive definite matrix; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.- Parameters:
A- Square, symmetric positive definite matrix .order- ordering option (0 or 1); 0: natural ordering, 1: amd(A+A')- Throws:
java.lang.IllegalArgumentException- if A is not square or is not sparse or is not a symmetric positive definite.java.lang.IllegalArgumentException- if order != 0 || order != 1
-
-
Method Detail
-
getL
public DoubleMatrix2D getL()
Returns the triangular factor, L.- Returns:
- L
-
getLtranspose
public DoubleMatrix2D getLtranspose()
Returns the triangular factor, L'.- Returns:
- L'
-
getSymbolicAnalysis
public Dcs_common.Dcss getSymbolicAnalysis()
Returns a copy of the symbolic Cholesky analysis object- Returns:
- symbolic Cholesky analysis
-
solve
public void solve(DoubleMatrix1D b)
Solves A*x = b(in-place). Upon return b is overridden with the result x.- Parameters:
b- A vector with of size A.rows();- Throws:
java.lang.IllegalArgumentException- if b.size() != A.rows().
-
-
DMelt 3.0 © DataMelt by jWork.ORG