Expression of a fixed-size or dynamic-size block. More...
Public Member Functions | |
Block (const MatrixType &matrix, int i) | |
Block (const MatrixType &matrix, int startRow, int startCol) | |
Block (const MatrixType &matrix, int startRow, int startCol, int blockRows, int blockCols) | |
const Scalar | coeff (int row, int col) const |
const Scalar | coeff (int index) const |
Scalar & | coeffRef (int row, int col) |
Scalar & | coeffRef (int index) |
int | cols () const |
template<int LoadMode> | |
PacketScalar | packet (int row, int col) const |
template<int LoadMode> | |
PacketScalar | packet (int index) const |
int | rows () const |
template<int LoadMode> | |
void | writePacket (int row, int col, const PacketScalar &x) |
template<int LoadMode> | |
void | writePacket (int index, const PacketScalar &x) |
Protected Attributes | |
const ei_int_if_dynamic < ColsAtCompileTime > | m_blockCols |
const ei_int_if_dynamic < RowsAtCompileTime > | m_blockRows |
const MatrixType::Nested | m_matrix |
const ei_int_if_dynamic < MatrixType::ColsAtCompileTime==1?0:Dynamic > | m_startCol |
const ei_int_if_dynamic < MatrixType::RowsAtCompileTime==1?0:Dynamic > | m_startRow |
Expression of a fixed-size or dynamic-size block.
MatrixType | the type of the object in which we are taking a block |
BlockRows | the number of rows of the block we are taking at compile time (optional) |
BlockCols | the number of columns of the block we are taking at compile time (optional) |
_PacketAccess | allows to enforce aligned loads and stores if set to ForceAligned. The default is AsRequested. This parameter is internaly used by Eigen in expressions such as mat.block() += other; |
_DirectAccessStatus |
Block | ( | const MatrixType & | matrix, |
int | i | ||
) | [inline] |
Column or Row constructor
Block | ( | const MatrixType & | matrix, |
int | startRow, | ||
int | startCol | ||
) | [inline] |
Fixed-size constructor
Block | ( | const MatrixType & | matrix, |
int | startRow, | ||
int | startCol, | ||
int | blockRows, | ||
int | blockCols | ||
) | [inline] |
Dynamic-size constructor
int cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< Block< MatrixType, BlockRows, BlockCols, PacketAccess, _DirectAccessStatus > >.
int rows | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< Block< MatrixType, BlockRows, BlockCols, PacketAccess, _DirectAccessStatus > >.