Expression of a coefficient wise version of the C++ ternary operator ?: More...
#include <Select.h>
Inherits no_assignment_operator, and type< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.
Public Types | |
typedef internal::dense_xpr_base < Select >::type | Base |
Public Member Functions | |
const Scalar | coeff (Index i, Index j) const |
const Scalar | coeff (Index i) const |
Index | cols () const |
const ConditionMatrixType & | conditionMatrix () const |
const ElseMatrixType & | elseMatrix () const |
Index | rows () const |
Select (const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix) | |
const ThenMatrixType & | thenMatrix () const |
Protected Attributes | |
ConditionMatrixType::Nested | m_condition |
ElseMatrixType::Nested | m_else |
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 DenseBase::select() and most of the time this is the only way it is used.
Select | ( | const ConditionMatrixType & | conditionMatrix, |
const ThenMatrixType & | thenMatrix, | ||
const ElseMatrixType & | elseMatrix | ||
) | [inline] |
const Scalar coeff | ( | Index | i, |
Index | j | ||
) | const [inline] |
const Scalar coeff | ( | Index | i | ) | const [inline] |
Index cols | ( | void | ) | const [inline] |
const ConditionMatrixType& conditionMatrix | ( | ) | const [inline] |
const ElseMatrixType& elseMatrix | ( | ) | const [inline] |
Index rows | ( | void | ) | const [inline] |
const ThenMatrixType& thenMatrix | ( | ) | const [inline] |
ConditionMatrixType::Nested m_condition [protected] |
Referenced by Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff(), Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::cols(), Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::conditionMatrix(), Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::rows(), and Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Select().
ElseMatrixType::Nested m_else [protected] |
ThenMatrixType::Nested m_then [protected] |