10 #ifndef EIGEN_SELECT_H
11 #define EIGEN_SELECT_H
31 template<
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
32 struct traits<
Select<ConditionMatrixType, ThenMatrixType, ElseMatrixType> >
42 RowsAtCompileTime = ConditionMatrixType::RowsAtCompileTime,
43 ColsAtCompileTime = ConditionMatrixType::ColsAtCompileTime,
44 MaxRowsAtCompileTime = ConditionMatrixType::MaxRowsAtCompileTime,
45 MaxColsAtCompileTime = ConditionMatrixType::MaxColsAtCompileTime,
46 Flags = (
unsigned int)ThenMatrixType::Flags & ElseMatrixType::Flags &
RowMajorBit
51 template<
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
61 Select(
const ConditionMatrixType& a_conditionMatrix,
62 const ThenMatrixType& a_thenMatrix,
63 const ElseMatrixType& a_elseMatrix)
123 template<
typename Derived>
124 template<
typename ThenDerived,
typename ElseDerived>
137 template<
typename Derived>
138 template<
typename ThenDerived>
144 derived(), thenMatrix.derived(), ThenDerived::Constant(
rows(),
cols(),elseScalar));
152 template<
typename Derived>
153 template<
typename ElseDerived>
159 derived(), ElseDerived::Constant(
rows(),
cols(),thenScalar), elseMatrix.derived());
164 #endif // EIGEN_SELECT_H