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

Sparse matrix which uses blocks on the diagonal. More...

#include <sparse_block_matrix_diagonal.h>

Public Types

typedef std::vector< MatrixType, Eigen::aligned_allocator< MatrixType > > DiagonalVector
 
typedef MatrixType SparseMatrixBlock
 this is the type of the elementary block, it is an Eigen::Matrix. More...
 

Public Member Functions

int baseOfBlock (int r) const
 where does the row /col at block-row / block-column r starts? More...
 
const std::vector< int > & blockIndices () const
 indices of the row blocks More...
 
int cols () const
 columns of the matrix More...
 
const DiagonalVectordiagonal () const
 the block matrices per block-column More...
 
DiagonalVectordiagonal ()
 
int dimOfBlock (int r) const
 how many rows/cols does the block at block-row / block-column r has? More...
 
void multiply (double *&dest, const double *src) const
 
int rows () const
 rows of the matrix More...
 
 SparseBlockMatrixDiagonal (const std::vector< int > &blockIndices)
 

Protected Attributes

const std::vector< int > & _blockIndices
 vector of the indices of the blocks along the diagonal More...
 
DiagonalVector _diagonal
 

Detailed Description

template<class MatrixType>
class g2o::SparseBlockMatrixDiagonal< MatrixType >

Sparse matrix which uses blocks on the diagonal.

This class is used as a const view on a SparseBlockMatrix which allows a faster iteration over the elements of the matrix.

Definition at line 47 of file sparse_block_matrix_diagonal.h.

Member Typedef Documentation

template<class MatrixType>
typedef std::vector<MatrixType, Eigen::aligned_allocator<MatrixType> > g2o::SparseBlockMatrixDiagonal< MatrixType >::DiagonalVector

Definition at line 58 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
typedef MatrixType g2o::SparseBlockMatrixDiagonal< MatrixType >::SparseMatrixBlock

this is the type of the elementary block, it is an Eigen::Matrix.

Definition at line 51 of file sparse_block_matrix_diagonal.h.

Constructor & Destructor Documentation

template<class MatrixType>
g2o::SparseBlockMatrixDiagonal< MatrixType >::SparseBlockMatrixDiagonal ( const std::vector< int > &  blockIndices)
inline

Definition at line 60 of file sparse_block_matrix_diagonal.h.

Member Function Documentation

template<class MatrixType>
int g2o::SparseBlockMatrixDiagonal< MatrixType >::baseOfBlock ( int  r) const
inline

where does the row /col at block-row / block-column r starts?

Definition at line 68 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
const std::vector<int>& g2o::SparseBlockMatrixDiagonal< MatrixType >::blockIndices ( ) const
inline

indices of the row blocks

Definition at line 75 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
int g2o::SparseBlockMatrixDiagonal< MatrixType >::cols ( ) const
inline

columns of the matrix

Definition at line 54 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
const DiagonalVector& g2o::SparseBlockMatrixDiagonal< MatrixType >::diagonal ( ) const
inline

the block matrices per block-column

Definition at line 71 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
DiagonalVector& g2o::SparseBlockMatrixDiagonal< MatrixType >::diagonal ( )
inline

Definition at line 72 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
int g2o::SparseBlockMatrixDiagonal< MatrixType >::dimOfBlock ( int  r) const
inline

how many rows/cols does the block at block-row / block-column r has?

Definition at line 65 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
void g2o::SparseBlockMatrixDiagonal< MatrixType >::multiply ( double *&  dest,
const double *  src 
) const
inline

Definition at line 77 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
int g2o::SparseBlockMatrixDiagonal< MatrixType >::rows ( ) const
inline

rows of the matrix

Definition at line 56 of file sparse_block_matrix_diagonal.h.

Member Data Documentation

template<class MatrixType>
const std::vector<int>& g2o::SparseBlockMatrixDiagonal< MatrixType >::_blockIndices
protected

vector of the indices of the blocks along the diagonal

Definition at line 102 of file sparse_block_matrix_diagonal.h.

template<class MatrixType>
DiagonalVector g2o::SparseBlockMatrixDiagonal< MatrixType >::_diagonal
protected

Definition at line 103 of file sparse_block_matrix_diagonal.h.


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


orb_slam2_ros
Author(s):
autogenerated on Wed Apr 21 2021 02:53:06