Go to the documentation of this file.
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,
46 Flags = (
unsigned int)ThenMatrixType::Flags & ElseMatrixType::Flags &
RowMajorBit
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>
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());
164 #endif // EIGEN_SELECT_H
const EIGEN_DEVICE_FUNC Select< Derived, ThenDerived, ElseDerived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
traits< ThenMatrixType >::Scalar Scalar
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
ThenMatrixType::Nested ThenMatrixNested
const EIGEN_DEVICE_FUNC Scalar coeff(Index i) const
const unsigned int RowMajorBit
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
ConditionMatrixType::Nested ConditionMatrixNested
const EIGEN_DEVICE_FUNC ThenMatrixType & thenMatrix() const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
const EIGEN_DEVICE_FUNC ConditionMatrixType & conditionMatrix() const
ElseMatrixType::Nested m_else
EIGEN_DEVICE_FUNC Select(const ConditionMatrixType &a_conditionMatrix, const ThenMatrixType &a_thenMatrix, const ElseMatrixType &a_elseMatrix)
internal::dense_xpr_base< Select >::type Base
ThenMatrixType::Nested m_then
Base class for all dense matrices, vectors, and arrays.
traits< ThenMatrixType >::XprKind XprKind
ElseMatrixType::Nested ElseMatrixNested
const EIGEN_DEVICE_FUNC ElseMatrixType & elseMatrix() const
Expression of a coefficient wise version of the C++ ternary operator ?:
ConditionMatrixType::Nested m_condition
const EIGEN_DEVICE_FUNC Scalar coeff(Index i, Index j) const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:02:53