7 Choleski decomposition of a matrix
8 structure for using the LU decomposition of a positive definite matrix.
14 struct Choleski_decomposition {
16 /// lower triangle of Choleski decomposition
24 /** Create decomposition of P.
26 P needs to be symmetric positive definite
29 Choleski_decomposition (Matrix const &P);
34 Vector solve (Vector rhs) const;
35 void solve (Vector &dest, Vector const &rhs) const;
36 Vector operator * (Vector rhs) const { return solve (rhs); }
38 return the inverse of the matrix P.
40 Matrix inverse() const;
42 return P, calc'ed from L and D
44 Matrix original() const;
46 void full_matrix_solve (Vector &,Vector const&) const;
47 void band_matrix_solve (Vector &, Vector const&) const;
48 void full_matrix_decompose (Matrix const & P);
49 void band_matrix_decompose (Matrix const &P);