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,
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>
141 const typename ThenDerived::Scalar& elseScalar)
const
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());
#define EIGEN_NOEXCEPT
Definition: Macros.h:1418
#define EIGEN_CONSTEXPR
Definition: Macros.h:787
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1283
#define eigen_assert(x)
Definition: Macros.h:1037
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
EIGEN_DEVICE_FUNC const Select< Derived, ThenDerived, ElseDerived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
Definition: Select.h:126
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:73
ElseMatrixType::Nested m_else
Definition: Select.h:111
EIGEN_DEVICE_FUNC const ElseMatrixType & elseMatrix() const
Definition: Select.h:103
internal::dense_xpr_base< Select >::type Base
Definition: Select.h:57
EIGEN_DEVICE_FUNC const Scalar coeff(Index i, Index j) const
Definition: Select.h:76
ConditionMatrixType::Nested m_condition
Definition: Select.h:109
EIGEN_DEVICE_FUNC const Scalar coeff(Index i) const
Definition: Select.h:85
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: Select.h:71
ThenMatrixType::Nested m_then
Definition: Select.h:110
EIGEN_DEVICE_FUNC const ThenMatrixType & thenMatrix() const
Definition: Select.h:98
EIGEN_DEVICE_FUNC Select(const ConditionMatrixType &a_conditionMatrix, const ThenMatrixType &a_thenMatrix, const ElseMatrixType &a_elseMatrix)
Definition: Select.h:61
EIGEN_DEVICE_FUNC const ConditionMatrixType & conditionMatrix() const
Definition: Select.h:93
Definition: XprHelper.h:110
const unsigned int RowMajorBit
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Flags
Special flags for archives.
Definition: cereal.hpp:185
Definition: document.h:416
Definition: Constants.h:507
Definition: XprHelper.h:484
ThenMatrixType::Nested ThenMatrixNested
Definition: Select.h:39
ElseMatrixType::Nested ElseMatrixNested
Definition: Select.h:40
ConditionMatrixType::Nested ConditionMatrixNested
Definition: Select.h:38
traits< ThenMatrixType >::XprKind XprKind
Definition: Select.h:37
traits< ThenMatrixType >::Scalar Scalar
Definition: Select.h:35
Dense StorageKind
Definition: Select.h:36
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233