g2o
|
linear solver which allows to update the cholesky factor More...
#include <linear_solver_cholmod_online.h>
Public Member Functions | |
LinearSolverCholmodOnline () | |
virtual | ~LinearSolverCholmodOnline () |
virtual bool | init () |
bool | solve (const SparseBlockMatrix< MatrixType > &A, double *x, double *b) |
bool | blockOrdering () const |
cholmod_factor * | L () const |
size_t | nonZerosInL () const |
int | choleskyUpdate (cholmod_sparse *update) |
bool | solve (double *x, double *b) |
void | computeSymbolicDecomposition (const SparseBlockMatrix< MatrixType > &A) |
void | fillCholmodExt (const SparseBlockMatrix< MatrixType > &A, bool onlyValues) |
Public Member Functions inherited from g2o::LinearSolver< MatrixType > | |
LinearSolver () | |
virtual | ~LinearSolver () |
virtual 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) |
virtual bool | writeDebug () const |
write a debug dump of the system matrix if it is not PSD in solve More... | |
virtual void | setWriteDebug (bool) |
Public Member Functions inherited from g2o::LinearSolverCholmodOnlineInterface | |
LinearSolverCholmodOnlineInterface () | |
Protected Attributes | |
cholmod_common | _cholmodCommon |
CholmodExt * | _cholmodSparse |
cholmod_factor * | _cholmodFactor |
bool | _blockOrdering |
MatrixStructure | _matrixStructure |
Eigen::VectorXi | _scalarPermutation |
Eigen::VectorXi | _blockPermutation |
Additional Inherited Members | |
Public Attributes inherited from g2o::LinearSolverCholmodOnlineInterface | |
Eigen::VectorXi * | cmember |
int | batchEveryN |
linear solver which allows to update the cholesky factor
Definition at line 46 of file linear_solver_cholmod_online.h.
|
inline |
Definition at line 49 of file linear_solver_cholmod_online.h.
|
inlinevirtual |
Definition at line 65 of file linear_solver_cholmod_online.h.
|
inline |
Definition at line 118 of file linear_solver_cholmod_online.h.
|
inlinevirtual |
Implements g2o::LinearSolverCholmodOnlineInterface.
Definition at line 135 of file linear_solver_cholmod_online.h.
References g2o::writeCCSMatrix().
|
inline |
Definition at line 173 of file linear_solver_cholmod_online.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(), and g2o::MatrixStructure::n.
|
inline |
Definition at line 217 of file linear_solver_cholmod_online.h.
References g2o::SparseBlockMatrix< MatrixType >::cols(), g2o::CholmodExt::columnsAllocated, g2o::SparseBlockMatrix< MatrixType >::fillCCS(), 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 75 of file linear_solver_cholmod_online.h.
|
inlinevirtual |
Implements g2o::LinearSolverCholmodOnlineInterface.
Definition at line 120 of file linear_solver_cholmod_online.h.
|
inlinevirtual |
return the number of non-zeros in the current factorization
Implements g2o::LinearSolverCholmodOnlineInterface.
Definition at line 125 of file linear_solver_cholmod_online.h.
References if().
|
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 80 of file linear_solver_cholmod_online.h.
References g2o::G2OBatchStatistics::choleskyNNZ, g2o::get_monotonic_time(), g2o::G2OBatchStatistics::globalStats(), g2o::G2OBatchStatistics::timeNumericDecomposition, and g2o::writeCCSMatrix().
|
inlinevirtual |
Implements g2o::LinearSolverCholmodOnlineInterface.
Definition at line 147 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 168 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 170 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 165 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 167 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 166 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 169 of file linear_solver_cholmod_online.h.
|
protected |
Definition at line 170 of file linear_solver_cholmod_online.h.