Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > Class Template Reference

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

List of all members.

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


Detailed Description

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
class Eigen::Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >

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

This is defined in the Array module.

 #include <Eigen/Array> 

Parameters:
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.

See also:
MatrixBase::select(const MatrixBase<ThenDerived>&, const MatrixBase<ElseDerived>&) const

Member Function Documentation

int cols (  )  const [inline]

int rows (  )  const [inline]


The documentation for this class was generated from the following file:

Generated on Thu Oct 8 14:52:40 2009 for Eigen by  doxygen 1.5.9