Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
cholesky.hpp File Reference

cholesky decomposition More...


Detailed Description

cholesky decomposition

-*- c++ -*-

Definition in file cholesky.hpp.

Go to the source code of this file.

Functions

template<class MATRIX , class TRIA >
size_t cholesky_decompose (const MATRIX &A, TRIA &L)
 decompose the symmetric positive definit matrix A into product L L^T.
template<class MATRIX >
size_t cholesky_decompose (MATRIX &A)
 decompose the symmetric positive definit matrix A into product L L^T.
template<class MATRIX >
size_t incomplete_cholesky_decompose (MATRIX &A)
 decompose the symmetric positive definit matrix A into product L L^T.
template<class TRIA , class VEC >
void cholesky_solve (const TRIA &L, VEC &x, ublas::lower)
 solve system L L^T x = b inplace
template<class MATRIX >
void cholesky_invert (MATRIX &M)
 invet matrix using Cholesky factorization inplace

Function Documentation

template<class MATRIX , class TRIA >
size_t cholesky_decompose ( const MATRIX &  A,
TRIA &  L 
)

decompose the symmetric positive definit matrix A into product L L^T.

Parameters:
MATRIXtype of input matrix
TRIAtype of lower triangular output matrix
Asquare symmetric positive definite input matrix (only the lower triangle is accessed)
Llower triangular output matrix
Returns:
nonzero if decompositon fails (the value ist 1 + the numer of the failing row)

Definition at line 52 of file cholesky.hpp.

template<class MATRIX >
size_t cholesky_decompose ( MATRIX &  A)

decompose the symmetric positive definit matrix A into product L L^T.

Parameters:
MATRIXtype of matrix A
Ainput: square symmetric positive definite matrix (only the lower triangle is accessed)
Aoutput: the lower triangle of A is replaced by the cholesky factor
Returns:
nonzero if decompositon fails (the value ist 1 + the numer of the failing row)

Definition at line 94 of file cholesky.hpp.

template<class MATRIX >
void cholesky_invert ( MATRIX &  M)

invet matrix using Cholesky factorization inplace

Parameters:
Minput: square symmetric positive definite matrix
Moutput: inverted square symmetric positive definite matrix

Definition at line 230 of file cholesky.hpp.

template<class TRIA , class VEC >
void cholesky_solve ( const TRIA &  L,
VEC &  x,
ublas::lower   
)

solve system L L^T x = b inplace

Parameters:
La triangular matrix
xinput: right hand side b; output: solution x

Definition at line 215 of file cholesky.hpp.

template<class MATRIX >
size_t incomplete_cholesky_decompose ( MATRIX &  A)

decompose the symmetric positive definit matrix A into product L L^T.

Parameters:
MATRIXtype of matrix A
Ainput: square symmetric positive definite matrix (only the lower triangle is accessed)
Aoutput: the lower triangle of A is replaced by the cholesky factor
Returns:
nonzero if decompositon fails (the value ist 1 + the numer of the failing row)

Definition at line 170 of file cholesky.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:29 for Jafar by doxygen 1.7.6.1
LAAS-CNRS