FactorizationCholeskySyPS
Computes the Cholesky factorization with complete pivoting of a real symmetric (complex Hermitian) positive semidefinite N-by-N matrix. The form of the factorization is:
P**T * A * P = L * L**T in case of lower triangular or symmetric matrix A
or
P**T * A * P = U**T * U in case of upper triangular matrix A
where P is a permutation matrix, L is lower triangular, U is upper triangular. LAPACK function PSTRF.
Computing for type matrix<double>
bool matrix::FactorizationCholeskySyPS(
double tol
matrix& P,
matrix& L
);
|
Computing for type matrix<float>
bool matrix::FactorizationCholeskySyPS(
float tol
matrixf& P,
matrixf& L
);
|
Computing for type matrix<complex>
bool matrix::FactorizationCholeskySyPS(
double tol
matrixc& P,
matrixc& L
);
|
Computing for type matrix<complexf>
bool matrix::FactorizationCholeskySyPS(
float tol
matrixcf& P,
matrixcf& L
);
|
Parameters
tol
[in] User defined tolerance. If tol < 0, then n*ε*max(A[k,k]), where ε is the machine precision, will be used. The algorithm terminates at the (k-1)st step, if the pivot <=tol.
P
[out] Permutation matrix P.
L
[out] Lower or upper triangular matrix.
Return Value
Note