11 #ifndef EIGEN_NESTBYVALUE_H
12 #define EIGEN_NESTBYVALUE_H
14 #include "./InternalHeaderCheck.h"
19 template<
typename ExpressionType>
20 struct traits<NestByValue<ExpressionType> > :
public traits<ExpressionType>
23 Flags = traits<ExpressionType>::Flags & ~NestByRefBit
41 :
public internal::dense_xpr_base< NestByValue<ExpressionType> >::type
45 typedef typename internal::dense_xpr_base<NestByValue>::type Base;
48 EIGEN_DEVICE_FUNC
explicit inline NestByValue(
const ExpressionType& matrix) : m_expression(matrix) {}
50 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index rows()
const EIGEN_NOEXCEPT {
return m_expression.rows(); }
51 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index cols()
const EIGEN_NOEXCEPT {
return m_expression.cols(); }
53 EIGEN_DEVICE_FUNC
operator const ExpressionType&()
const {
return m_expression; }
55 EIGEN_DEVICE_FUNC
const ExpressionType& nestedExpression()
const {
return m_expression; }
58 const ExpressionType m_expression;
63 template<
typename Derived>
73 template<
typename ArgType>
75 :
public evaluator<ArgType>
77 typedef evaluator<ArgType> Base;
80 : Base(xpr.nestedExpression())
const NestByValue< Derived > nestByValue() const
Definition: NestByValue.h:65
Expression which must be nested by value.
Definition: NestByValue.h:42
Namespace containing all symbols from the Eigen library.
Definition: Core:139
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:59