g2o
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
g2o::LinearSolverCCS< MatrixType > Class Template Reference

Solver with faster iterating structure for the linear matrix. More...

#include <linear_solver.h>

Inheritance diagram for g2o::LinearSolverCCS< MatrixType >:
Inheritance graph
[legend]
Collaboration diagram for g2o::LinearSolverCCS< MatrixType >:
Collaboration graph
[legend]

Public Member Functions

 LinearSolverCCS ()
 
 ~LinearSolverCCS ()
 
- Public Member Functions inherited from g2o::LinearSolver< MatrixType >
 LinearSolver ()
 
virtual ~LinearSolver ()
 
virtual bool init ()=0
 
virtual bool solve (const SparseBlockMatrix< MatrixType > &A, double *x, double *b)=0
 
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)
 

Protected Member Functions

void initMatrixStructure (const SparseBlockMatrix< MatrixType > &A)
 

Protected Attributes

SparseBlockMatrixCCS< MatrixType > * _ccsMatrix
 

Detailed Description

template<typename MatrixType>
class g2o::LinearSolverCCS< MatrixType >

Solver with faster iterating structure for the linear matrix.

Definition at line 87 of file linear_solver.h.

Constructor & Destructor Documentation

template<typename MatrixType >
g2o::LinearSolverCCS< MatrixType >::LinearSolverCCS ( )
inline

Definition at line 90 of file linear_solver.h.

90 : LinearSolver<MatrixType>(), _ccsMatrix(0) {}
SparseBlockMatrixCCS< MatrixType > * _ccsMatrix
Definition: linear_solver.h:97
template<typename MatrixType >
g2o::LinearSolverCCS< MatrixType >::~LinearSolverCCS ( )
inline

Definition at line 91 of file linear_solver.h.

92  {
93  delete _ccsMatrix;
94  }
SparseBlockMatrixCCS< MatrixType > * _ccsMatrix
Definition: linear_solver.h:97

Member Function Documentation

template<typename MatrixType >
void g2o::LinearSolverCCS< MatrixType >::initMatrixStructure ( const SparseBlockMatrix< MatrixType > &  A)
inlineprotected

Definition at line 99 of file linear_solver.h.

References g2o::SparseBlockMatrix< MatrixType >::colBlockIndices(), g2o::SparseBlockMatrix< MatrixType >::fillSparseBlockMatrixCCS(), and g2o::SparseBlockMatrix< MatrixType >::rowBlockIndices().

100  {
101  delete _ccsMatrix;
102  _ccsMatrix = new SparseBlockMatrixCCS<MatrixType>(A.rowBlockIndices(), A.colBlockIndices());
103  A.fillSparseBlockMatrixCCS(*_ccsMatrix);
104  }
SparseBlockMatrixCCS< MatrixType > * _ccsMatrix
Definition: linear_solver.h:97

Member Data Documentation

template<typename MatrixType >
SparseBlockMatrixCCS<MatrixType>* g2o::LinearSolverCCS< MatrixType >::_ccsMatrix
protected

Definition at line 97 of file linear_solver.h.


The documentation for this class was generated from the following file: