This is defined in the Array module.
#include <Eigen/Array>
ConditionMatrixType | the type of the condition expression which must be a boolean matrix | |
ThenMatrixType | the type of the then expression | |
ElseMatrixType | the type of the else expression |
Public Member Functions | |
const Scalar | coeff (int i) const |
const Scalar | coeff (int i, int j) const |
int | cols () const |
int | rows () const |
Select (const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix) | |
Protected Attributes | |
const ConditionMatrixType::Nested | m_condition |
const ElseMatrixType::Nested | m_else |
const ThenMatrixType::Nested | m_then |
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.
int cols | ( | ) | const [inline] |
int rows | ( | ) | const [inline] |