ITK
5.2.0
Insight Toolkit
|
#include <VNLSparseLUSolverTraits.h>
Public Types | |
using | MatrixType = vnl_sparse_matrix< ValueType > |
using | SolverType = vnl_sparse_lu |
using | ValueType = T |
using | VectorType = vnl_vector< ValueType > |
Static Public Member Functions | |
static void | AddToMatrix (MatrixType &iA, const unsigned int &iR, const unsigned int &iC, const ValueType &iV) |
static void | FillMatrix (MatrixType &iA, const unsigned int &iR, const unsigned int &iC, const ValueType &iV) |
static MatrixType | InitializeSparseMatrix (const unsigned int &iN) |
static MatrixType | InitializeSparseMatrix (const unsigned int &iRow, const unsigned int &iCol) |
static VectorType | InitializeVector (const unsigned int &iN) |
static bool | IsDirectSolver () |
static bool | Solve (const MatrixType &iA, const VectorType &iB, VectorType &oX) |
static bool | Solve (const MatrixType &iA, const VectorType &iBx, const VectorType &iBy, const VectorType &iBz, VectorType &oX, VectorType &oY, VectorType &oZ) |
static bool | Solve (const MatrixType &iA, const VectorType &iBx, const VectorType &iBy, VectorType &oX, VectorType &oY) |
static void | Solve (SolverType &solver, const VectorType &iB, VectorType &oX) |
static void | Solve (SolverType &solver, const VectorType &iBx, const VectorType &iBy, const VectorType &iBz, VectorType &oX, VectorType &oY, VectorType &oZ) |
static void | Solve (SolverType &solver, const VectorType &iBx, const VectorType &iBy, VectorType &oX, VectorType &oY) |
Generic interface for sparse LU solver.
This generic interface (common to several sparse solvers), allow to interchange solver solutions when dealing with sparse linear systems. See itk::ParameterizationQuadEdgeMeshFilter for reference.
It internally uses the VNL library to represent and deal with vectors (vnl_vector) and sparse matrices (vnl_sparse_matrix). The solver by itself is made of a sparse LU decomposition followed by solving upper triangular system. see vnl_sparse_lu for more details on the method used.
Definition at line 42 of file VNLSparseLUSolverTraits.h.
using VNLSparseLUSolverTraits< T >::MatrixType = vnl_sparse_matrix<ValueType> |
Definition at line 46 of file VNLSparseLUSolverTraits.h.
using VNLSparseLUSolverTraits< T >::SolverType = vnl_sparse_lu |
Definition at line 48 of file VNLSparseLUSolverTraits.h.
using VNLSparseLUSolverTraits< T >::ValueType = T |
Definition at line 45 of file VNLSparseLUSolverTraits.h.
using VNLSparseLUSolverTraits< T >::VectorType = vnl_vector<ValueType> |
Definition at line 47 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
iA[iR][iC] += iV
Definition at line 87 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
iA[iR][iC] = iV
Definition at line 80 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a square sparse matrix of size iN x iN
Definition at line 59 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a sparse matrix of size iRow x iCol
Definition at line 66 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a vector of size iN
Definition at line 73 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Definition at line 52 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear system .
Definition at line 94 of file VNLSparseLUSolverTraits.h.
Referenced by VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear systems: , , .
Definition at line 105 of file VNLSparseLUSolverTraits.h.
References VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear systems: , .
Definition at line 121 of file VNLSparseLUSolverTraits.h.
References VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear system factoring the internal matrix if needed.
Definition at line 131 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear systems: , , factoring the internal matrix if needed.
Definition at line 139 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear systems: , factoring the internal matrix if needed.
Definition at line 155 of file VNLSparseLUSolverTraits.h.