10 #ifndef EIGEN_SELECT_H
11 #define EIGEN_SELECT_H
34 template <
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
35 struct traits<
Select<ConditionMatrixType, ThenMatrixType, ElseMatrixType> > :
traits<ThenMatrixType> {
43 RowsAtCompileTime = ConditionMatrixType::RowsAtCompileTime,
44 ColsAtCompileTime = ConditionMatrixType::ColsAtCompileTime,
45 MaxRowsAtCompileTime = ConditionMatrixType::MaxRowsAtCompileTime,
46 MaxColsAtCompileTime = ConditionMatrixType::MaxColsAtCompileTime,
52 template <
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
60 const ElseMatrixType& a_elseMatrix)
91 typename ThenMatrixType::Nested
m_then;
92 typename ElseMatrixType::Nested
m_else;
103 template <
typename Derived>
104 template <
typename ThenDerived,
typename ElseDerived>
108 ThenDerived, ElseDerived, Derived>
120 template <
typename Derived>
121 template <
typename ThenDerived>
132 thenMatrix.derived(), ElseConstantType(
rows(),
cols(), elseScalar), derived(), Op());
139 template <
typename Derived>
140 template <
typename ElseDerived>
151 elseMatrix.derived(), derived(), Op());
int i
Definition: BiCGSTAB_step_by_step.cpp:9
#define EIGEN_NOEXCEPT
Definition: Macros.h:1267
#define EIGEN_CONSTEXPR
Definition: Macros.h:758
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1171
#define eigen_assert(x)
Definition: Macros.h:910
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
SCALAR Scalar
Definition: bench_gemm.cpp:45
Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:64
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
EIGEN_DEVICE_FUNC CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, Scalar >, ThenDerived, ElseDerived, Derived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
Expression of a coefficient wise version of the C++ ternary operator ?:
Definition: Select.h:54
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: Select.h:67
ElseMatrixType::Nested m_else
Definition: Select.h:92
EIGEN_DEVICE_FUNC const ElseMatrixType & elseMatrix() const
Definition: Select.h:87
internal::dense_xpr_base< Select >::type Base
Definition: Select.h:56
EIGEN_DEVICE_FUNC const Scalar coeff(Index i, Index j) const
Definition: Select.h:69
ConditionMatrixType::Nested m_condition
Definition: Select.h:90
EIGEN_DEVICE_FUNC const Scalar coeff(Index i) const
Definition: Select.h:76
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: Select.h:66
ThenMatrixType::Nested m_then
Definition: Select.h:91
EIGEN_DEVICE_FUNC const ThenMatrixType & thenMatrix() const
Definition: Select.h:85
EIGEN_DEVICE_FUNC const ConditionMatrixType & conditionMatrix() const
Definition: Select.h:83
Definition: XprHelper.h:134
const unsigned int RowMajorBit
Definition: Constants.h:70
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
Extend namespace for flags.
Definition: fsi_chan_precond_driver.cc:56
type
Definition: compute_granudrum_aor.py:141
Definition: Eigen_Colamd.h:49
Definition: Constants.h:519
Definition: XprHelper.h:558
Definition: TernaryFunctors.h:23
ThenMatrixType::Nested ThenMatrixNested
Definition: Select.h:40
ElseMatrixType::Nested ElseMatrixNested
Definition: Select.h:41
ConditionMatrixType::Nested ConditionMatrixNested
Definition: Select.h:39
traits< ThenMatrixType >::XprKind XprKind
Definition: Select.h:38
traits< ThenMatrixType >::Scalar Scalar
Definition: Select.h:36
Dense StorageKind
Definition: Select.h:37
Definition: ForwardDeclarations.h:21
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2