g2o
|
basic solver for Ax = b which has to reimplemented for different linear algebra libraries More...
#include <linear_solver_cholmod.h>
Public Member Functions | |
LinearSolverCholmod () | |
virtual | ~LinearSolverCholmod () |
virtual bool | init () |
bool | solve (const SparseBlockMatrix< MatrixType > &A, double *x, double *b) |
bool | solveBlocks (double **&blocks, const SparseBlockMatrix< MatrixType > &A) |
virtual bool | solvePattern (SparseBlockMatrix< MatrixXD > &spinv, const std::vector< std::pair< int, int > > &blockIndices, const SparseBlockMatrix< MatrixType > &A) |
bool | blockOrdering () const |
do the AMD ordering on the blocks or on the scalar matrix More... | |
void | setBlockOrdering (bool blockOrdering) |
virtual bool | writeDebug () const |
write a debug dump of the system matrix if it is not SPD in solve More... | |
virtual void | setWriteDebug (bool b) |
virtual bool | saveMatrix (const std::string &fileName) |
Public Member Functions inherited from g2o::LinearSolverCCS< MatrixType > | |
LinearSolverCCS () | |
~LinearSolverCCS () | |
Public Member Functions inherited from g2o::LinearSolver< MatrixType > | |
LinearSolver () | |
virtual | ~LinearSolver () |
Protected Member Functions | |
void | computeSymbolicDecomposition (const SparseBlockMatrix< MatrixType > &A) |
void | fillCholmodExt (const SparseBlockMatrix< MatrixType > &A, bool onlyValues) |
Protected Member Functions inherited from g2o::LinearSolverCCS< MatrixType > | |
void | initMatrixStructure (const SparseBlockMatrix< MatrixType > &A) |
Protected Attributes | |
cholmod_common | _cholmodCommon |
CholmodExt * | _cholmodSparse |
cholmod_factor * | _cholmodFactor |
bool | _blockOrdering |
MatrixStructure | _matrixStructure |
VectorXI | _scalarPermutation |
VectorXI | _blockPermutation |
bool | _writeDebug |
Protected Attributes inherited from g2o::LinearSolverCCS< MatrixType > | |
SparseBlockMatrixCCS< MatrixType > * | _ccsMatrix |
basic solver for Ax = b which has to reimplemented for different linear algebra libraries
Definition at line 76 of file linear_solver_cholmod.h.
|
inline |
Definition at line 79 of file linear_solver_cholmod.h.
References g2o::CholmodExt::CholmodExt().
|
inlinevirtual |
Definition at line 96 of file linear_solver_cholmod.h.
|
inline |
do the AMD ordering on the blocks or on the scalar matrix
Definition at line 249 of file linear_solver_cholmod.h.
|
inlineprotected |
Definition at line 271 of file linear_solver_cholmod.h.
References g2o::MatrixStructure::Aii, g2o::MatrixStructure::Ap, g2o::SparseBlockMatrix< MatrixType >::colBaseOfBlock(), g2o::SparseBlockMatrix< MatrixType >::colsOfBlock(), g2o::SparseBlockMatrix< MatrixType >::fillBlockStructure(), g2o::get_monotonic_time(), g2o::G2OBatchStatistics::globalStats(), g2o::MatrixStructure::n, and g2o::MatrixStructure::nzMax().
|
inlineprotected |
Definition at line 340 of file linear_solver_cholmod.h.
References g2o::SparseBlockMatrix< MatrixType >::cols(), g2o::CholmodExt::columnsAllocated, g2o::SparseBlockMatrix< MatrixType >::nonZeros(), and g2o::SparseBlockMatrix< MatrixType >::rows().
|
inlinevirtual |
init for operating on matrices with a different non-zero pattern like before
Implements g2o::LinearSolver< MatrixType >.
Definition at line 106 of file linear_solver_cholmod.h.
|
inlinevirtual |
Definition at line 256 of file linear_solver_cholmod.h.
References g2o::writeCCSMatrix().
|
inline |
Definition at line 250 of file linear_solver_cholmod.h.
|
inlinevirtual |
Reimplemented from g2o::LinearSolver< MatrixType >.
Definition at line 254 of file linear_solver_cholmod.h.
|
inlinevirtual |
Assumes that A is the same matrix for several calls. Among other assumptions, the non-zero pattern does not change! If the matrix changes call init() before. solve system Ax = b, x and b have to allocated beforehand!!
Implements g2o::LinearSolver< MatrixType >.
Definition at line 115 of file linear_solver_cholmod.h.
References g2o::G2OBatchStatistics::choleskyNNZ, g2o::get_monotonic_time(), g2o::G2OBatchStatistics::globalStats(), and g2o::G2OBatchStatistics::timeNumericDecomposition.
|
inlinevirtual |
Inverts the diagonal blocks of A
Reimplemented from g2o::LinearSolver< MatrixType >.
Definition at line 156 of file linear_solver_cholmod.h.
References g2o::G2OBatchStatistics::choleskyNNZ, g2o::SparseBlockMatrix< MatrixType >::colsOfBlock(), g2o::MarginalCovarianceCholesky::computeCovariance(), g2o::G2OBatchStatistics::globalStats(), g2o::SparseBlockMatrix< MatrixType >::rowBlockIndices(), g2o::SparseBlockMatrix< MatrixType >::rows(), g2o::SparseBlockMatrix< MatrixType >::rowsOfBlock(), and g2o::MarginalCovarianceCholesky::setCholeskyFactor().
|
inlinevirtual |
Inverts the a block pattern of A in spinv
Reimplemented from g2o::LinearSolver< MatrixType >.
Definition at line 207 of file linear_solver_cholmod.h.
References g2o::G2OBatchStatistics::choleskyNNZ, g2o::MarginalCovarianceCholesky::computeCovariance(), g2o::G2OBatchStatistics::globalStats(), g2o::SparseBlockMatrix< MatrixType >::rowBlockIndices(), and g2o::MarginalCovarianceCholesky::setCholeskyFactor().
|
inlinevirtual |
write a debug dump of the system matrix if it is not SPD in solve
Reimplemented from g2o::LinearSolver< MatrixType >.
Definition at line 253 of file linear_solver_cholmod.h.
|
protected |
Definition at line 266 of file linear_solver_cholmod.h.
|
protected |
Definition at line 268 of file linear_solver_cholmod.h.
|
protected |
Definition at line 263 of file linear_solver_cholmod.h.
|
protected |
Definition at line 265 of file linear_solver_cholmod.h.
|
protected |
Definition at line 264 of file linear_solver_cholmod.h.
|
protected |
Definition at line 267 of file linear_solver_cholmod.h.
|
protected |
Definition at line 268 of file linear_solver_cholmod.h.
|
protected |
Definition at line 269 of file linear_solver_cholmod.h.