11#ifndef EIGEN_NESTBYVALUE_H
12#define EIGEN_NESTBYVALUE_H
17template<
typename ExpressionType>
18struct 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 EIGEN_CONSTEXPR
inline Index rows()
const EIGEN_NOEXCEPT {
return m_expression.rows(); }
49 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index cols()
const EIGEN_NOEXCEPT {
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;
61template<
typename Derived>
71template<
typename ArgType>
73 :
public evaluator<ArgType>
75 typedef evaluator<ArgType> Base;
78 : Base(xpr.nestedExpression())
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
Expression which must be nested by value.
Definition: NestByValue.h:40
Namespace containing all symbols from the Eigen library.
Definition: Core:141
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74