11 #ifndef EIGEN_RETURNBYVALUE_H
12 #define EIGEN_RETURNBYVALUE_H
20 template<
typename Derived>
21 struct traits<ReturnByValue<Derived> >
22 :
public traits<typename traits<Derived>::ReturnType>
28 Flags = (traits<typename traits<Derived>::ReturnType>::Flags
40 template<
typename Derived,
int n,
typename PlainObject>
41 struct nested_eval<ReturnByValue<Derived>,
n, PlainObject>
43 typedef typename traits<Derived>::ReturnType type;
53 :
public internal::dense_xpr_base< ReturnByValue<Derived> >::type, internal::no_assignment_operator
56 typedef typename internal::traits<Derived>::ReturnType
ReturnType;
58 typedef typename internal::dense_xpr_base<ReturnByValue>::type
Base;
61 template<
typename Dest>
64 {
static_cast<const Derived*
>(
this)->
evalTo(dst); }
70 #ifndef EIGEN_PARSED_BY_DOXYGEN
71 #define Unusable YOU_ARE_TRYING_TO_ACCESS_A_SINGLE_COEFFICIENT_IN_A_SPECIAL_EXPRESSION_WHERE_THAT_IS_NOT_ALLOWED_BECAUSE_THAT_WOULD_BE_INEFFICIENT
73 Unusable(
const Unusable&) {}
74 Unusable& operator=(
const Unusable&) {
return *
this;}
76 const Unusable& coeff(
Index)
const {
return *
reinterpret_cast<const Unusable*
>(
this); }
77 const Unusable& coeff(
Index,
Index)
const {
return *
reinterpret_cast<const Unusable*
>(
this); }
78 Unusable& coeffRef(
Index) {
return *
reinterpret_cast<Unusable*
>(
this); }
79 Unusable& coeffRef(
Index,
Index) {
return *
reinterpret_cast<Unusable*
>(
this); }
84 template<
typename Derived>
85 template<
typename OtherDerived>
98 template<
typename Derived>
100 :
public evaluator<typename internal::traits<Derived>::ReturnType>
103 typedef typename internal::traits<Derived>::ReturnType PlainObject;
104 typedef evaluator<PlainObject> Base;
109 internal::construct_at<Base>(
this, m_result);
110 xpr.evalTo(m_result);
114 PlainObject m_result;
#define EIGEN_DEVICE_FUNC
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Derived & operator=(const DenseBase< OtherDerived > &other)
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
internal::dense_xpr_base< ReturnByValue >::type Base
internal::traits< Derived >::ReturnType ReturnType
void evalTo(Dest &dst) const
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
const unsigned int EvalBeforeNestingBit
const unsigned int DirectAccessBit
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.