#include "lapacke.h"
#include "useful_functions.h"
#include "mbs_message.h"
#include "mbs_errors_names.h"
Classes | |
struct | complex_float |
Implementation of eig function using lapacke without using the lapackE interface. More... | |
struct | complex_double |
Macros | |
#define | lapack_complex_float struct complex_float |
#define | lapack_complex_double struct complex_double |
Functions | |
int | mbs_choldc_0 (double **A, int n) |
Compute the Cholesky decomposition of A, i.e. More... | |
int | mbs_cholsl_0 (double **A, int n, double **B, int nb) |
Solves a symmetric positive definite system of linear equations AX=B (B being the right hand side with possibly more than 1 column) using the Cholesky factorization computed by mbs_choldc_0 in COL MAJOR ! More... | |
#define lapack_complex_double struct complex_double |
#define lapack_complex_float struct complex_float |
int mbs_choldc_0 | ( | double ** | A, |
int | n | ||
) |
Compute the Cholesky decomposition of A, i.e.
the upper triangular matrix L
/!\/!\/!\ the upper triangular matrix is expressed in COL major /!\/!\/!\
WARNING: A is modified !
[in,out] | A | : IN : real symmetric positive definite matrix. OUT: in COLUMN major the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A |
int mbs_cholsl_0 | ( | double ** | A, |
int | n, | ||
double ** | B, | ||
int | nb | ||
) |
Solves a symmetric positive definite system of linear equations AX=B (B being the right hand side with possibly more than 1 column) using the Cholesky factorization computed by mbs_choldc_0 in COL MAJOR !
WARNING: B is modified and the solution is stored in the matrix !
/!\/!\/!\ the B and the X(solution) matrices are expressed in COL major /!\/!\/!\
[in,out] | A | COLUMN major the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A |
[in] | n | size of the A matrix |
[in,out] | B | On entry - In COLUMN major - the right hand side matrix B. On exit - In COLUMN major - the solution matrix X. |
[in] | nb | number of vectors for the RHS matrix B. |