NDEVR
API Documentation
SparseBlockMatrixDiagonal< MatrixType >

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

Inheritance diagram for SparseBlockMatrixDiagonal< MatrixType >:
[legend]
Collaboration diagram for SparseBlockMatrixDiagonal< MatrixType >:
[legend]

Public Types

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

Public Member Functions

int baseOfBlock (int r) const
 where does the row /col at block-row / block-column r starts?
const Buffer< int > & blockIndices () const
 indices of the row blocks
int cols () const
 columns of the matrix
const DiagonalVector & diagonal () const
 the block matrices per block-column
int dimOfBlock (int r) const
 how many rows/cols does the block at block-row / block-column r has?
int rows () const
 rows of the matrix

Protected Attributes

const Buffer< int > * _blockIndices = nullptr
 vector of the indices of the blocks along the diagonal

Detailed Description

template<class MatrixType>
class 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 18 of file sparse_block_matrix_diagonal.h.


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