NDEVR
API Documentation
LinearSolverDense< MatrixType >

linear solver using dense cholesky decomposition More...

Collaboration diagram for LinearSolverDense< MatrixType >:
[legend]

Public Member Functions

 LinearSolverDense ()
 Default constructor.
bool init ()
 Resets the solver state for a new factorization.
bool solve (const SparseBlockMatrix< MatrixType > &A, g_type *x, g_type *b)
 Solves the linear system Ax = b using dense Cholesky decomposition.

Public Attributes

SparseOptimizer optimizer
 The sparse optimizer instance.

Protected Attributes

Eigen::LDLT< Eigen::MatrixX< g_type > > _cholesky
 LDLT Cholesky decomposition.
Eigen::MatrixX< g_type > _H
 Dense representation of the system matrix.
bool _reset
 Whether the dense matrix needs to be re-zeroed.

Detailed Description

template<typename MatrixType>
class LinearSolverDense< MatrixType >

linear solver using dense cholesky decomposition

Definition at line 43 of file linear_solver_dense.h.

Member Function Documentation

◆ init()

template<typename MatrixType>
bool LinearSolverDense< MatrixType >::init ( )
inline

Resets the solver state for a new factorization.

Returns
True always.

Definition at line 59 of file linear_solver_dense.h.

References _reset.

◆ solve()

template<typename MatrixType>
bool LinearSolverDense< MatrixType >::solve ( const SparseBlockMatrix< MatrixType > & A,
g_type * x,
g_type * b )
inline

Solves the linear system Ax = b using dense Cholesky decomposition.

Parameters
[in]AThe sparse block matrix (symmetric, positive definite).
[out]xThe solution vector.
[in]bThe right-hand side vector.
Returns
True on success (positive definite), false otherwise.

Definition at line 70 of file linear_solver_dense.h.

References _cholesky, _H, and _reset.


The documentation for this class was generated from the following file: