Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
Eigen::Select Class Reference

Detailed Description

Expression of a coefficient wise version of the C++ ternary operator ?:

Parameters:
ConditionMatrixTypethe type of the condition expression which must be a boolean matrix
ThenMatrixTypethe type of the then expression
ElseMatrixTypethe 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.

See also:
DenseBase::select(const DenseBase<ThenDerived>&, const DenseBase<ElseDerived>&) const
Inheritance diagram for Eigen::Select:
Inheritance graph
[legend]

List of all members.

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
const ConditionMatrixType & conditionMatrix () const
const ThenMatrixType & thenMatrix () const
const ElseMatrixType & elseMatrix () const

Protected Attributes

const ConditionMatrixType::Nested m_condition
const ThenMatrixType::Nested m_then
const ElseMatrixType::Nested m_else

Member Typedef Documentation

Definition at line 74 of file Core.


Constructor & Destructor Documentation

Eigen::Select::Select ( const ConditionMatrixType &  conditionMatrix,
const ThenMatrixType &  thenMatrix,
const ElseMatrixType &  elseMatrix 
) [inline]

Definition at line 77 of file Core.


Member Function Documentation

const Scalar Eigen::Select::coeff ( Index  i,
Index  j 
) const [inline]

Definition at line 89 of file Core.

const Scalar Eigen::Select::coeff ( Index  i) const [inline]

Definition at line 97 of file Core.

Index Eigen::Select::cols ( void  ) const [inline]

Definition at line 87 of file Core.

const ConditionMatrixType& Eigen::Select::conditionMatrix ( ) const [inline]

Definition at line 105 of file Core.

const ElseMatrixType& Eigen::Select::elseMatrix ( ) const [inline]

Definition at line 115 of file Core.

Index Eigen::Select::rows ( void  ) const [inline]

Definition at line 86 of file Core.

const ThenMatrixType& Eigen::Select::thenMatrix ( ) const [inline]

Definition at line 110 of file Core.


Member Data Documentation

const ConditionMatrixType::Nested Eigen::Select::m_condition [protected]

Definition at line 121 of file Core.

const ElseMatrixType::Nested Eigen::Select::m_else [protected]

Definition at line 123 of file Core.

const ThenMatrixType::Nested Eigen::Select::m_then [protected]

Definition at line 122 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011