NiHu  2.0
matrix_block.hpp File Reference

implementation of a block matrix More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NiHu::matrix_block< Matrix, RowIndex, ColIndex >
 Proxy class to represent a block of a matrix. More...
 

Functions

template<class Matrix , class RowIndex , class ColIndex >
matrix_block< Matrix, RowIndex, ColIndex > NiHu::block (Matrix &matrix, RowIndex const &rows, ColIndex const &cols)
 Factory function of matrix_block. More...
 

Detailed Description

implementation of a block matrix

Definition in file matrix_block.hpp.

Function Documentation

◆ block()

template<class Matrix , class RowIndex , class ColIndex >
matrix_block<Matrix, RowIndex, ColIndex> NiHu::block ( Matrix &  matrix,
RowIndex const &  rows,
ColIndex const &  cols 
)

Factory function of matrix_block.

Template Parameters
MatrixThe matrix type
RowIndexRow index vector type
ColIndexColumn index vector type
Parameters
[in]matrixThe matrix object to index
[in]rowsRows to be selected
[in]colsColumns to be selected
Returns
Block proxy to the referenced block

The function allows easy creation of block instances of an arbitrary matrix object.

Definition at line 90 of file matrix_block.hpp.