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 |
Public Member Functions | |
Block (const MatrixType &matrix, int startRow, int startCol, int blockRows, int blockCols) | |
Block (const MatrixType &matrix, int startRow, int startCol) | |
Block (const MatrixType &matrix, int i) | |
const Scalar | coeff (int index) const |
const Scalar | coeff (int row, int col) const |
Scalar & | coeffRef (int index) |
Scalar & | coeffRef (int row, int col) |
int | cols () const |
template<int LoadMode> | |
PacketScalar | packet (int index) const |
template<int LoadMode> | |
PacketScalar | packet (int row, int col) const |
int | rows () const |
template<int LoadMode> | |
void | writePacket (int index, const PacketScalar &x) |
template<int LoadMode> | |
void | writePacket (int row, int col, 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 |
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
const Scalar coeff | ( | int | index | ) | const [inline] |
Short version: don't use this function, use operator[](int) const instead.
Long version: this function is similar to operator[](int) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameter index is in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator[](int) const .
Reimplemented from MatrixBase.
const Scalar coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Short version: don't use this function, use operator()(int,int) const instead.
Long version: this function is similar to operator()(int,int) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator()(int,int) const .
Reimplemented from MatrixBase.
Scalar& coeffRef | ( | int | index | ) | [inline] |
Short version: don't use this function, use operator[](int) instead.
Long version: this function is similar to operator[](int), but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator[](int).
Reimplemented from MatrixBase.
Scalar& coeffRef | ( | int | row, | |
int | col | |||
) | [inline] |
Short version: don't use this function, use operator()(int,int) instead.
Long version: this function is similar to operator()(int,int), but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator()(int,int).
Reimplemented from MatrixBase.
int cols | ( | ) | const [inline] |
PacketScalar packet | ( | int | index | ) | const [inline] |
Reimplemented from MatrixBase.
PacketScalar packet | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase.
int rows | ( | void | ) | const [inline] |