g2o
|
Sparse matrix which uses blocks on the diagonal. More...
#include <sparse_block_matrix_diagonal.h>
Public Types | |
typedef MatrixType | SparseMatrixBlock |
this is the type of the elementary block, it is an Eigen::Matrix. More... | |
typedef std::vector< MatrixType, Eigen::aligned_allocator< MatrixType > > | DiagonalVector |
Public Member Functions | |
int | cols () const |
columns of the matrix More... | |
int | rows () const |
rows of the matrix More... | |
SparseBlockMatrixDiagonal (const std::vector< int > &blockIndices) | |
int | dimOfBlock (int r) const |
how many rows/cols does the block at block-row / block-column r has? More... | |
int | baseOfBlock (int r) const |
where does the row /col at block-row / block-column r starts? More... | |
const DiagonalVector & | diagonal () const |
the block matrices per block-column More... | |
DiagonalVector & | diagonal () |
const std::vector< int > & | blockIndices () const |
indices of the row blocks More... | |
void | multiply (double *&dest, const double *src) const |
Protected Attributes | |
const std::vector< int > & | _blockIndices |
vector of the indices of the blocks along the diagonal More... | |
DiagonalVector | _diagonal |
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.
typedef std::vector<MatrixType, Eigen::aligned_allocator<MatrixType> > g2o::SparseBlockMatrixDiagonal< MatrixType >::DiagonalVector |
Definition at line 58 of file sparse_block_matrix_diagonal.h.
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.
|
inline |
Definition at line 60 of file sparse_block_matrix_diagonal.h.
|
inline |
where does the row /col at block-row / block-column r starts?
Definition at line 68 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::multiply().
|
inline |
indices of the row blocks
Definition at line 75 of file sparse_block_matrix_diagonal.h.
|
inline |
columns of the matrix
Definition at line 54 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::multiply().
|
inline |
the block matrices per block-column
Definition at line 71 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::BlockSolver< Traits >::buildStructure(), and g2o::BlockSolver< Traits >::solve().
|
inline |
Definition at line 72 of file sparse_block_matrix_diagonal.h.
|
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.
|
inline |
Definition at line 77 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::BlockSolver< Traits >::solve().
|
inline |
rows of the matrix
Definition at line 56 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::multiply().
|
protected |
vector of the indices of the blocks along the diagonal
Definition at line 102 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::baseOfBlock(), g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::blockIndices(), g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::cols(), g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::dimOfBlock(), and g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::rows().
|
protected |
Definition at line 103 of file sparse_block_matrix_diagonal.h.
Referenced by g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::diagonal(), and g2o::SparseBlockMatrixDiagonal< LandmarkMatrixType >::multiply().