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.
Definition at line 68 of file Select.h.
#include <src/Core/Select.h>

Public Types | |
| typedef internal::dense_xpr_base < Select >::type | Base |
Public Member Functions | |
| Select (const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix) | |
| Index | rows () const |
| Index | cols () const |
| const Scalar | coeff (Index i, Index j) const |
| const Scalar | coeff (Index i) const |
Protected Attributes | |
| const ConditionMatrixType::Nested | m_condition |
| const ThenMatrixType::Nested | m_then |
| const ElseMatrixType::Nested | m_else |
| typedef internal::dense_xpr_base<Select>::type Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Base |
| const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff | ( | Index | i, |
| Index | j | ||
| ) | const [inline] |
| const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff | ( | Index | i ) | const [inline] |
| Index Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::cols | ( | void | ) | const [inline] |
Definition at line 86 of file Select.h.
References Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_condition.
| Index Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::rows | ( | void | ) | const [inline] |
Definition at line 85 of file Select.h.
References Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_condition.
const ConditionMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_condition [protected] |
Definition at line 105 of file Select.h.
Referenced by Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff(), Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::cols(), Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::rows(), and Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Select().
const ElseMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_else [protected] |
Definition at line 107 of file Select.h.
Referenced by Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff(), and Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Select().
const ThenMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_then [protected] |
Definition at line 106 of file Select.h.
Referenced by Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff(), and Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Select().
| Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |