CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
Loading...
Searching...
No Matches
cla3p::LapackLDLt< T_Matrix > Class Template Reference

The indefinite Cholesky (LDL') linear solver for dense matrices. More...

Inheritance diagram for cla3p::LapackLDLt< T_Matrix >:

Public Member Functions

 LapackLDLt ()
 The default constructor.
 LapackLDLt (int_t n)
 The dimensional constructor.
 ~LapackLDLt ()=default
 Destroys the solver.
Public Member Functions inherited from cla3p::LapackBase< T_Matrix >
void reserve (int_t n)
 Allocates internal buffers.
void clear ()
 Clears the solver internal data.
void decompose (const T_Matrix &mat)
 Performs matrix decomposition.
void idecompose (T_Matrix &mat)
 Performs in-place matrix decomposition.
void solve (T_Matrix &rhs) const
 Performs in-place matrix solution.
void solve (T_Vector &rhs) const
 Performs in-place vector solution.

Detailed Description

template<typename T_Matrix>
class cla3p::LapackLDLt< T_Matrix >

The indefinite Cholesky (LDL') linear solver for dense matrices.

Implements the Cholesky decomposition \( A = L D L^T \) for indefinite symmetric/hermitian matrices.

Template Parameters
T_MatrixThe matrix type (e.g., dns::XxMatrix<T_Scalar>).
Examples
ex05b_solving_linear_systems_ldlt.cpp.

Constructor & Destructor Documentation

◆ LapackLDLt() [1/2]

template<typename T_Matrix>
cla3p::LapackLDLt< T_Matrix >::LapackLDLt ( )
inline

The default constructor.

Constructs an empty solver object.

◆ LapackLDLt() [2/2]

template<typename T_Matrix>
cla3p::LapackLDLt< T_Matrix >::LapackLDLt ( int_t n)
inline

The dimensional constructor.

Constructs a solver object with \( n^2 \) preallocated buffered size.

Parameters
[in]nThe expected problem dimension.

◆ ~LapackLDLt()

template<typename T_Matrix>
cla3p::LapackLDLt< T_Matrix >::~LapackLDLt ( )
default

Destroys the solver.

Clears all internal data and destroys the solver.