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

The linear solver for dense matrices with automatic method detection. More...

Inheritance diagram for cla3p::LapackAuto< T_Matrix >:

Public Member Functions

 LapackAuto ()
 The default constructor.
 LapackAuto (int_t n)
 The dimensional constructor.
 ~LapackAuto ()=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::LapackAuto< T_Matrix >

The linear solver for dense matrices with automatic method detection.

Automatically selects the appropriate decomposition method (LU, LLt, or LDLt) based on matrix properties.

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

Constructor & Destructor Documentation

◆ LapackAuto() [1/2]

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

The default constructor.

Constructs an empty solver object.

◆ LapackAuto() [2/2]

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

The dimensional constructor.

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

Parameters
[in]nThe expected problem dimension.

◆ ~LapackAuto()

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

Destroys the solver.

Clears all internal data and destroys the solver.