14#include "./InternalHeaderCheck.h"
32template <
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
33using Select = CwiseTernaryOp<internal::scalar_boolean_select_op<typename DenseBase<ThenMatrixType>::Scalar,
34 typename DenseBase<ElseMatrixType>::Scalar,
35 typename DenseBase<ConditionMatrixType>::Scalar>,
36 ThenMatrixType, ElseMatrixType, ConditionMatrixType>;
46template <
typename Derived>
47template <
typename ThenDerived,
typename ElseDerived>
48inline EIGEN_DEVICE_FUNC CwiseTernaryOp<
49 internal::scalar_boolean_select_op<typename DenseBase<ThenDerived>::Scalar,
typename DenseBase<ElseDerived>::Scalar,
50 typename DenseBase<Derived>::Scalar>,
51 ThenDerived, ElseDerived, Derived>
60template <
typename Derived>
61template <
typename ThenDerived>
70 ElseConstantType(rows(), cols(), elseScalar), derived());
77template <
typename Derived>
78template <
typename ElseDerived>
87 elseMatrix.
derived(), derived());
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
Definition CwiseTernaryOp.h:86
Base class for all dense matrices, vectors, and arrays.
Definition DenseBase.h:44
internal::traits< Derived >::Scalar Scalar
Definition DenseBase.h:62
constexpr Derived & derived()
Definition EigenBase.h:49
Namespace containing all symbols from the Eigen library.
Definition B01_Experimental.dox:1