31template<
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
32struct 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
51template<
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
61 Select(
const ConditionMatrixType& a_conditionMatrix,
62 const ThenMatrixType& a_thenMatrix,
63 const ElseMatrixType& a_elseMatrix)
123template<
typename Derived>
124template<
typename ThenDerived,
typename ElseDerived>
137template<
typename Derived>
138template<
typename ThenDerived>
141 const typename ThenDerived::Scalar& elseScalar)
const
144 derived(), thenMatrix.derived(), ThenDerived::Constant(rows(),cols(),elseScalar));
152template<
typename Derived>
153template<
typename ElseDerived>
159 derived(), ElseDerived::Constant(rows(),cols(),thenScalar), elseMatrix.derived());
#define EIGEN_NOEXCEPT
Definition: Macros.h:1428
#define EIGEN_CONSTEXPR
Definition: Macros.h:797
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1293
#define eigen_assert(x)
Definition: Macros.h:1047
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 const ConditionMatrixType & conditionMatrix() const
Definition: Select.h:93
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 ThenMatrixType & thenMatrix() const
Definition: Select.h:98
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 ElseMatrixType & elseMatrix() const
Definition: Select.h:103
EIGEN_DEVICE_FUNC Select(const ConditionMatrixType &a_conditionMatrix, const ThenMatrixType &a_thenMatrix, const ElseMatrixType &a_elseMatrix)
Definition: Select.h:61
Definition: XprHelper.h:110
type
Definition: core.h:575
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition: MatrixExponential.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Definition: Eigen_Colamd.h:50
The type used to identify a dense storage.
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