10 #ifndef EIGEN_CWISE_UNARY_VIEW_H 11 #define EIGEN_CWISE_UNARY_VIEW_H 16 template<
typename ViewOp,
typename MatrixType>
31 InnerStrideAtCompileTime = MatrixTypeInnerStride ==
Dynamic 41 template<
typename ViewOp,
typename MatrixType,
typename StorageKind>
57 template<
typename ViewOp,
typename MatrixType>
68 : m_matrix(mat), m_functor(func) {}
76 const ViewOp&
functor()
const {
return m_functor; }
92 template<
typename ViewOp,
typename XprType,
typename StorageKind>
100 template<
typename ViewOp,
typename MatrixType>
112 EIGEN_DEVICE_FUNC inline Scalar* data() {
return &(this->coeffRef(0)); }
113 EIGEN_DEVICE_FUNC
inline const Scalar*
data()
const {
return &(this->coeff(0)); }
128 #endif // EIGEN_CWISE_UNARY_VIEW_H const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
#define EIGEN_STRONG_INLINE
result_of< ViewOp(const typename traits< MatrixType >::Scalar &) >::type Scalar
CwiseUnaryView< ViewOp, MatrixType > Derived
internal::generic_xpr_base< CwiseUnaryView< ViewOp, XprType > >::type Base
const unsigned int DirectAccessBit
EIGEN_STRONG_INLINE Index cols() const
const unsigned int LvalueBit
const ViewOp & functor() const
const unsigned int RowMajorBit
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
EIGEN_DEVICE_FUNC Index outerStride() const
internal::remove_reference< MatrixTypeNested >::type & nestedExpression()
EIGEN_DEVICE_FUNC const Scalar * data() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
internal::remove_all< MatrixType >::type NestedExpression
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
remove_all< MatrixTypeNested >::type _MatrixTypeNested
EIGEN_DEVICE_FUNC Index innerStride() const
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
MatrixTypeNested m_matrix
CwiseUnaryViewImpl< ViewOp, MatrixType, typename internal::traits< MatrixType >::StorageKind >::Base Base
internal::dense_xpr_base< CwiseUnaryView< ViewOp, MatrixType > >::type Base
MatrixType::Nested MatrixTypeNested