ITK
5.0.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 | |
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) |
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 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.