Shapeworks Studio
2.1
Shape analysis software suite
|
A sparse LU factorization and solver based on UmfPack. More...
#include <UmfPackSupport.h>
Public Types | |
typedef _MatrixType | MatrixType |
typedef MatrixType::Scalar | Scalar |
typedef MatrixType::RealScalar | RealScalar |
typedef MatrixType::Index | Index |
typedef Matrix< Scalar, Dynamic, 1 > | Vector |
typedef Matrix< int, 1, MatrixType::ColsAtCompileTime > | IntRowVectorType |
typedef Matrix< int, MatrixType::RowsAtCompileTime, 1 > | IntColVectorType |
typedef SparseMatrix< Scalar > | LUMatrixType |
typedef SparseMatrix< Scalar, ColMajor, int > | UmfpackMatrixType |
Public Member Functions | |
UmfPackLU (const MatrixType &matrix) | |
Index | rows () const |
Index | cols () const |
ComputationInfo | info () const |
Reports whether previous computation was successful. More... | |
const LUMatrixType & | matrixL () const |
const LUMatrixType & | matrixU () const |
const IntColVectorType & | permutationP () const |
const IntRowVectorType & | permutationQ () const |
void | compute (const MatrixType &matrix) |
template<typename Rhs > | |
const internal::solve_retval< UmfPackLU, Rhs > | solve (const MatrixBase< Rhs > &b) const |
template<typename Rhs > | |
const internal::sparse_solve_retval< UmfPackLU, Rhs > | solve (const SparseMatrixBase< Rhs > &b) const |
void | analyzePattern (const MatrixType &matrix) |
void | factorize (const MatrixType &matrix) |
template<typename BDerived , typename XDerived > | |
bool | _solve (const MatrixBase< BDerived > &b, MatrixBase< XDerived > &x) const |
Scalar | determinant () const |
void | extractData () const |
Protected Member Functions | |
void | init () |
void | grapInput (const MatrixType &mat) |
Protected Attributes | |
LUMatrixType | m_l |
LUMatrixType | m_u |
IntColVectorType | m_p |
IntRowVectorType | m_q |
UmfpackMatrixType | m_copyMatrix |
const Scalar * | m_valuePtr |
const int * | m_outerIndexPtr |
const int * | m_innerIndexPtr |
void * | m_numeric |
void * | m_symbolic |
ComputationInfo | m_info |
bool | m_isInitialized |
int | m_factorizationIsOk |
int | m_analysisIsOk |
bool | m_extractedDataAreDirty |
A sparse LU factorization and solver based on UmfPack.
This class allows to solve for A.X = B sparse linear problems via a LU factorization using the UmfPack library. The sparse matrix A must be squared and full rank. 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<> |
Definition at line 124 of file UmfPackSupport.h.
|
inline |
Performs a symbolic decomposition on the sparcity of matrix.
This function is particularly useful when solving for several problems having the same structure.
Definition at line 233 of file UmfPackSupport.h.
|
inline |
Computes the sparse Cholesky decomposition of matrix Note that the matrix should be column-major, and in compressed format for best performance.
Definition at line 195 of file UmfPackSupport.h.
|
inline |
Performs a numeric decomposition of matrix
The given matrix must has the same sparcity than the matrix on which the pattern anylysis has been performed.
Definition at line 258 of file UmfPackSupport.h.
|
inline |
Reports whether previous computation was successful.
Success
if computation was succesful, NumericalIssue
if the matrix.appears to be negative. Definition at line 161 of file UmfPackSupport.h.
|
inline |
Definition at line 206 of file UmfPackSupport.h.
|
inline |
Definition at line 219 of file UmfPackSupport.h.