Expression of a coefficient wise version of the C++ ternary operator ?: More...
#include <Select.h>
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 |
Expression of a coefficient wise version of the C++ ternary operator ?:
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.
Definition at line 64 of file Select.h.
const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff | ( | int | i | ) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff | ( | int | i, | |
int | j | |||
) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
int Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
int Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::rows | ( | ) | const [inline] |
Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
const ConditionMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_condition [protected] |