10 #ifndef EIGEN_SELECT_H 11 #define EIGEN_SELECT_H 14 #include "./InternalHeaderCheck.h" 32 template <
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
33 using Select = CwiseTernaryOp<internal::scalar_boolean_select_op<typename DenseBase<ThenMatrixType>::Scalar,
36 ThenMatrixType, ElseMatrixType, ConditionMatrixType>;
46 template <
typename Derived>
47 template <
typename ThenDerived,
typename ElseDerived>
51 ThenDerived, ElseDerived, Derived>
60 template <
typename Derived>
61 template <
typename ThenDerived>
70 ElseConstantType(rows(), cols(), elseScalar), derived());
77 template <
typename Derived>
78 template <
typename ElseDerived>
87 elseMatrix.
derived(), derived());
92 #endif // EIGEN_SELECT_H constexpr Derived & derived()
Definition: EigenBase.h:49
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:38
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
Definition: CwiseTernaryOp.h:84
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenMatrixType >::Scalar, typename DenseBase< ElseMatrixType >::Scalar, typename DenseBase< ConditionMatrixType >::Scalar >, ThenMatrixType, ElseMatrixType, ConditionMatrixType > Select
Expression of a coefficient wise version of the C++ ternary operator ?:
Definition: Select.h:36