Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
cr_cholesky.h
1 // ============================================================================
2 // TOAST v.15 (c) Martin Schweiger 1999
3 // cr_cholesky (module libmath)
4 //
5 // Cholesky factorisation routines for SCR (sparse compressed row) matrices
6 // ============================================================================
7 
8 #ifndef __CR_CHOLESKY_H
9 #define __CR_CHOLESKY_H
10 
11 MATHLIB int symbolic_cholesky_factor (int dim, idxtype *rowptr, idxtype *colidx,
12  idxtype *&frowptr, idxtype *&fcolidx);
13 // For a symmetric positive definite matrix of dimension dim x dim, with
14 // sparse structure defined by rowptr and colidx (SCR format), generate the
15 // sparse structure of the lower triangle of its Cholesky factor (excluding
16 // diagonal) and return it in frowptr and fcolidx.
17 // frowptr and fcolidx should not be allocated before the call, and should
18 // be freed after use.
19 
20 #endif // !__CR_CHOLESKY_H