10 #ifndef EIGEN_ARRAYWRAPPER_H 11 #define EIGEN_ARRAYWRAPPER_H 27 template<
typename ExpressionType>
29 :
public traits<typename remove_all<typename ExpressionType::Nested>::type >
41 template<
typename ExpressionType>
50 typedef typename
internal::conditional<
75 inline const Scalar*
data()
const {
return m_expression.data(); }
80 return m_expression.coeffRef(rowId, colId);
86 return m_expression.coeffRef(index);
89 template<
typename Dest>
91 inline void evalTo(Dest& dst)
const { dst = m_expression; }
125 template<
typename ExpressionType>
127 :
public traits<typename remove_all<typename ExpressionType::Nested>::type >
139 template<
typename ExpressionType>
148 typedef typename
internal::conditional<
156 using Base::coeffRef;
173 inline const Scalar*
data()
const {
return m_expression.data(); }
178 return m_expression.derived().coeffRef(rowId, colId);
184 return m_expression.coeffRef(index);
209 #endif // EIGEN_ARRAYWRAPPER_H EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue * data()
NestedExpressionType m_expression
EIGEN_DEVICE_FUNC void resize(Index rows, Index cols)
#define EIGEN_STRONG_INLINE
internal::conditional< internal::is_lvalue< ExpressionType >::value, Scalar, const Scalar >::type ScalarWithConstIfNotLvalue
internal::traits< Derived >::Scalar Scalar
Expression of a mathematical vector or matrix as an array object.
EIGEN_DEVICE_FUNC const Scalar & coeffRef(Index index) const
internal::conditional< internal::is_lvalue< ExpressionType >::value, Scalar, const Scalar >::type ScalarWithConstIfNotLvalue
internal::ref_selector< ExpressionType >::non_const_type NestedExpressionType
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const EIGEN_NOEXCEPT
const unsigned int LvalueBit
EIGEN_DEVICE_FUNC void resize(Index newSize)
internal::ref_selector< ExpressionType >::non_const_type NestedExpressionType
Namespace containing all symbols from the Eigen library.
EIGEN_DEVICE_FUNC const internal::remove_all< NestedExpressionType >::type & nestedExpression() const
MatrixBase< MatrixWrapper< ExpressionType > > Base
EIGEN_DEVICE_FUNC const internal::remove_all< NestedExpressionType >::type & nestedExpression() const
Expression of an array as a mathematical vector or matrix.
NestedExpressionType m_expression
EIGEN_DEVICE_FUNC const Scalar * data() const
EIGEN_DEVICE_FUNC const Scalar * data() const
EIGEN_DEVICE_FUNC const Scalar & coeffRef(Index rowId, Index colId) const
EIGEN_DEVICE_FUNC const Scalar & coeffRef(Index rowId, Index colId) const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC const Scalar & coeffRef(Index index) const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const EIGEN_NOEXCEPT
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
ArrayBase< ArrayWrapper > Base
Base class for all 1D and 2D array, and related expressions.
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC void resize(Index newSize)
const unsigned int NestByRefBit
#define EIGEN_DEVICE_FUNC
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
EIGEN_DEVICE_FUNC void resize(Index rows, Index cols)
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
EIGEN_DEVICE_FUNC void evalTo(Dest &dst) const
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue * data()