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(); }
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
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
const unsigned int DirectAccessBit
Means that the underlying array of coefficients can be directly accessed as a plain strided array.
Definition Constants.h:155
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition Constants.h:144
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition Constants.h:66
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time,...
Definition Constants.h:22
The type used to identify a dense storage.
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