ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <VNLSparseLUSolverTraits.h>
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.
Public Types | |
typedef vnl_sparse_matrix < ValueType > | MatrixType |
typedef vnl_sparse_lu | SolverType |
typedef T | ValueType |
typedef vnl_vector< ValueType > | VectorType |
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) |
typedef vnl_sparse_matrix< ValueType > VNLSparseLUSolverTraits< T >::MatrixType |
Definition at line 46 of file VNLSparseLUSolverTraits.h.
typedef vnl_sparse_lu VNLSparseLUSolverTraits< T >::SolverType |
Definition at line 48 of file VNLSparseLUSolverTraits.h.
typedef T VNLSparseLUSolverTraits< T >::ValueType |
Definition at line 45 of file VNLSparseLUSolverTraits.h.
typedef vnl_vector< ValueType > VNLSparseLUSolverTraits< T >::VectorType |
Definition at line 47 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
iA[iR][iC] += iV
Definition at line 81 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
iA[iR][iC] = iV
Definition at line 75 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a square sparse matrix of size iN x iN
Definition at line 57 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a sparse matrix of size iRow x iCol
Definition at line 63 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
initialize a vector of size iN
Definition at line 69 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Definition at line 51 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear system .
Definition at line 87 of file VNLSparseLUSolverTraits.h.
Referenced by VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear systems: , , .
Definition at line 96 of file VNLSparseLUSolverTraits.h.
References VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear systems: , .
Definition at line 107 of file VNLSparseLUSolverTraits.h.
References VNLSparseLUSolverTraits< T >::Solve().
|
inlinestatic |
Solve the linear system factoring the internal matrix if needed.
Definition at line 118 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear systems: , , factoring the internal matrix if needed.
Definition at line 124 of file VNLSparseLUSolverTraits.h.
|
inlinestatic |
Solve the linear systems: , factoring the internal matrix if needed.
Definition at line 134 of file VNLSparseLUSolverTraits.h.