Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Attributes
Eigen::Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > Class Template Reference

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

#include <Select.h>

+ Inheritance diagram for Eigen::Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >:
+ Collaboration diagram for Eigen::Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >:

Public Types

typedef internal::dense_xpr_base< Select >::type Base
 

Public Member Functions

 Select (const ConditionMatrixType &a_conditionMatrix, const ThenMatrixType &a_thenMatrix, const ElseMatrixType &a_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

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

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 ?:

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

Definition at line 55 of file Select.h.


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