10#ifndef EIGEN_CWISE_UNARY_VIEW_H
11#define EIGEN_CWISE_UNARY_VIEW_H
16template<
typename ViewOp,
typename MatrixType>
23 typedef typename MatrixType::Nested MatrixTypeNested;
24 typedef typename remove_all<MatrixTypeNested>::type _MatrixTypeNested;
31 InnerStrideAtCompileTime = MatrixTypeInnerStride ==
Dynamic
41template<
typename ViewOp,
typename MatrixType,
typename StorageKind>
57template<
typename ViewOp,
typename MatrixType>
65 typedef typename internal::remove_all<MatrixType>::type NestedExpression;
68 : m_matrix(mat), m_functor(func) {}
72 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR
73 Index rows()
const EIGEN_NOEXCEPT {
return m_matrix.rows(); }
74 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR
75 Index cols()
const EIGEN_NOEXCEPT {
return m_matrix.cols(); }
78 EIGEN_DEVICE_FUNC
const ViewOp&
functor()
const {
return m_functor; }
81 EIGEN_DEVICE_FUNC
const typename internal::remove_all<MatrixTypeNested>::type&
85 EIGEN_DEVICE_FUNC
typename internal::remove_reference<MatrixTypeNested>::type&
89 MatrixTypeNested m_matrix;
94template<
typename ViewOp,
typename XprType,
typename StorageKind>
102template<
typename ViewOp,
typename MatrixType>
111 EIGEN_DENSE_PUBLIC_INTERFACE(
Derived)
114 EIGEN_DEVICE_FUNC
inline Scalar* data() {
return &(this->coeffRef(0)); }
115 EIGEN_DEVICE_FUNC
inline const Scalar* data()
const {
return &(this->coeff(0)); }
117 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index innerStride()
const
122 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
inline Index outerStride()
const
Definition CwiseUnaryView.h:97
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
Definition CwiseUnaryView.h:59
EIGEN_DEVICE_FUNC const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
Definition CwiseUnaryView.h:82
EIGEN_DEVICE_FUNC const ViewOp & functor() const
Definition CwiseUnaryView.h:78
EIGEN_DEVICE_FUNC internal::remove_reference< MatrixTypeNested >::type & nestedExpression()
Definition CwiseUnaryView.h:86
const unsigned int DirectAccessBit
Definition Constants.h:155
const unsigned int LvalueBit
Definition Constants.h:144
const unsigned int RowMajorBit
Definition Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition common.h:81
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const int Dynamic
Definition Constants.h:22
Definition Constants.h:507
Definition XprHelper.h:484
Definition XprHelper.h:501
Definition DenseCoeffsBase.h:659
Definition XprHelper.h:660
Definition DenseCoeffsBase.h:671
Definition ForwardDeclarations.h:17