Expression of a coefficient wise version of the C++ ternary operator ?: More...
Public Member Functions | |
| const Scalar | coeff (int i, int j) const |
| const Scalar | coeff (int i) 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 |
Expression of a coefficient wise version of the C++ ternary operator ?:
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 |
This class represents an expression of a coefficient wise version of the C++ ternary operator ?:. It is the return type of MatrixBase::select() and most of the time this is the only way it is used.
| int cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
| int rows | ( | ) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
1.7.1