Sparse direct LU solver based on PaStiX library. More...
#include <PaStiXSupport.h>
Public Types | |
typedef PastixBase< PastixLU < MatrixType > > | Base |
typedef Base::ColSpMatrix | ColSpMatrix |
typedef MatrixType::Index | Index |
typedef _MatrixType | MatrixType |
Public Member Functions | |
void | analyzePattern (const MatrixType &matrix) |
void | compute (const MatrixType &matrix) |
void | factorize (const MatrixType &matrix) |
PastixLU () | |
PastixLU (const MatrixType &matrix) | |
Protected Member Functions | |
void | grabMatrix (const MatrixType &matrix, ColSpMatrix &out) |
void | init () |
Protected Attributes | |
bool | m_structureIsUptodate |
ColSpMatrix | m_transposedStructure |
Sparse direct LU solver based on PaStiX library.
This class is used to solve the linear systems A.X = B with a supernodal LU factorization in the PaStiX library. The matrix A should be squared and nonsingular PaStiX requires that the matrix A has a symmetric structural pattern. This interface can symmetrize the input matrix otherwise. The vectors or matrices X and B can be either dense or sparse.
_MatrixType | the type of the sparse matrix A, it must be a SparseMatrix<> |
IsStrSym | Indicates if the input matrix has a symmetric pattern, default is false NOTE : Note that if the analysis and factorization phase are called separately, the input matrix will be symmetrized at each call, hence it is advised to symmetrize the matrix in a end-user program and set IsStrSym to true |
Definition at line 452 of file PaStiXSupport.h.
typedef PastixBase<PastixLU<MatrixType> > Eigen::PastixLU< _MatrixType, IsStrSym >::Base |
Definition at line 456 of file PaStiXSupport.h.
typedef Base::ColSpMatrix Eigen::PastixLU< _MatrixType, IsStrSym >::ColSpMatrix |
Reimplemented from Eigen::PastixBase< PastixLU< _MatrixType > >.
Definition at line 457 of file PaStiXSupport.h.
typedef MatrixType::Index Eigen::PastixLU< _MatrixType, IsStrSym >::Index |
Reimplemented from Eigen::PastixBase< PastixLU< _MatrixType > >.
Definition at line 458 of file PaStiXSupport.h.
typedef _MatrixType Eigen::PastixLU< _MatrixType, IsStrSym >::MatrixType |
Reimplemented from Eigen::PastixBase< PastixLU< _MatrixType > >.
Definition at line 455 of file PaStiXSupport.h.
Eigen::PastixLU< _MatrixType, IsStrSym >::PastixLU | ( | ) | [inline] |
Definition at line 461 of file PaStiXSupport.h.
Eigen::PastixLU< _MatrixType, IsStrSym >::PastixLU | ( | const MatrixType & | matrix | ) | [inline] |
Definition at line 466 of file PaStiXSupport.h.
void Eigen::PastixLU< _MatrixType, IsStrSym >::analyzePattern | ( | const MatrixType & | matrix | ) | [inline] |
Compute the LU symbolic factorization of matrix
using its sparsity pattern. Several ordering methods can be used at this step. See the PaStiX user's manual. The result of this operation can be used with successive matrices having the same pattern as matrix
Definition at line 488 of file PaStiXSupport.h.
void Eigen::PastixLU< _MatrixType, IsStrSym >::compute | ( | const MatrixType & | matrix | ) | [inline] |
Compute the LU supernodal factorization of matrix
. iparm and dparm can be used to tune the PaStiX parameters. see the PaStiX user's manual
Definition at line 476 of file PaStiXSupport.h.
void Eigen::PastixLU< _MatrixType, IsStrSym >::factorize | ( | const MatrixType & | matrix | ) | [inline] |
Compute the LU supernodal factorization of matrix
WARNING The matrix matrix
should have the same structural pattern as the same used in the analysis phase.
Definition at line 501 of file PaStiXSupport.h.
void Eigen::PastixLU< _MatrixType, IsStrSym >::grabMatrix | ( | const MatrixType & | matrix, |
ColSpMatrix & | out | ||
) | [inline, protected] |
Definition at line 516 of file PaStiXSupport.h.
void Eigen::PastixLU< _MatrixType, IsStrSym >::init | ( | ) | [inline, protected] |
Reimplemented from Eigen::PastixBase< PastixLU< _MatrixType > >.
Definition at line 509 of file PaStiXSupport.h.
bool Eigen::PastixLU< _MatrixType, IsStrSym >::m_structureIsUptodate [protected] |
Definition at line 544 of file PaStiXSupport.h.
ColSpMatrix Eigen::PastixLU< _MatrixType, IsStrSym >::m_transposedStructure [protected] |
Definition at line 543 of file PaStiXSupport.h.