11 #ifndef EIGEN_NESTBYVALUE_H
12 #define EIGEN_NESTBYVALUE_H
17 template<
typename ExpressionType>
18 struct traits<NestByValue<ExpressionType> > :
public traits<ExpressionType>
21 Flags = traits<ExpressionType>::Flags & ~NestByRefBit
39 :
public internal::dense_xpr_base< NestByValue<ExpressionType> >::type
43 typedef typename internal::dense_xpr_base<NestByValue>::type Base;
46 EIGEN_DEVICE_FUNC
explicit inline NestByValue(
const ExpressionType& matrix) : m_expression(matrix) {}
48 EIGEN_DEVICE_FUNC
inline Index rows()
const {
return m_expression.rows(); }
49 EIGEN_DEVICE_FUNC
inline Index cols()
const {
return m_expression.cols(); }
51 EIGEN_DEVICE_FUNC
operator const ExpressionType&()
const {
return m_expression; }
53 EIGEN_DEVICE_FUNC
const ExpressionType& nestedExpression()
const {
return m_expression; }
56 const ExpressionType m_expression;
61 template<
typename Derived>
71 template<
typename ArgType>
73 :
public evaluator<ArgType>
75 typedef evaluator<ArgType> Base;
78 : Base(xpr.nestedExpression())
const NestByValue< Derived > nestByValue() const
Definition: NestByValue.h:63
Expression which must be nested by value.
Definition: NestByValue.h:40
Namespace containing all symbols from the Eigen library.
Definition: Core:134
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74