11 #ifndef EIGEN_RETURNBYVALUE_H
12 #define EIGEN_RETURNBYVALUE_H
18 template<
typename Derived>
20 :
public traits<typename traits<Derived>::ReturnType>
38 template<
typename Derived,
int n,
typename PlainObject>
59 template<
typename Dest>
62 {
static_cast<const Derived*
>(
this)->
evalTo(dst); }
68 #ifndef EIGEN_PARSED_BY_DOXYGEN
69 #define Unusable YOU_ARE_TRYING_TO_ACCESS_A_SINGLE_COEFFICIENT_IN_A_SPECIAL_EXPRESSION_WHERE_THAT_IS_NOT_ALLOWED_BECAUSE_THAT_WOULD_BE_INEFFICIENT
82 template<
typename Derived>
83 template<
typename OtherDerived>
96 template<
typename Derived>
98 :
public evaluator<typename internal::traits<Derived>::ReturnType>
105 : m_result(xpr.rows(), xpr.cols())
107 ::new (
static_cast<Base*
>(
this))
Base(m_result);
#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
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const DenseBase< OtherDerived > &other)
Definition: Assign.h:39
Definition: ReturnByValue.h:70
Unusable(const Unusable &)
Definition: ReturnByValue.h:71
Unusable & operator=(const Unusable &)
Definition: ReturnByValue.h:72
Definition: ReturnByValue.h:52
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: ReturnByValue.h:64
const Unusable & coeff(Index, Index) const
Definition: ReturnByValue.h:75
Unusable & coeffRef(Index, Index)
Definition: ReturnByValue.h:77
internal::dense_xpr_base< ReturnByValue >::type Base
Definition: ReturnByValue.h:56
internal::traits< Derived >::ReturnType ReturnType
Definition: ReturnByValue.h:54
Unusable & coeffRef(Index)
Definition: ReturnByValue.h:76
const Unusable & coeff(Index) const
Definition: ReturnByValue.h:74
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: ReturnByValue.h:66
EIGEN_DEVICE_FUNC void evalTo(Dest &dst) const
Definition: ReturnByValue.h:61
Definition: XprHelper.h:110
const unsigned int EvalBeforeNestingBit
Definition: Constants.h:70
const unsigned int DirectAccessBit
Definition: Constants.h:155
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: XprHelper.h:484
ReturnByValue< Derived > XprType
Definition: ReturnByValue.h:100
evaluator< PlainObject > Base
Definition: ReturnByValue.h:102
EIGEN_DEVICE_FUNC evaluator(const XprType &xpr)
Definition: ReturnByValue.h:104
PlainObject m_result
Definition: ReturnByValue.h:112
internal::traits< Derived >::ReturnType PlainObject
Definition: ReturnByValue.h:101
Definition: CoreEvaluators.h:91
unary_evaluator< T > Base
Definition: CoreEvaluators.h:92
traits< Derived >::ReturnType type
Definition: ReturnByValue.h:41
Definition: XprHelper.h:458
Definition: ForwardDeclarations.h:17
#define const
Definition: zconf.h:233