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 #define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
#define EIGEN_STRONG_INLINE
EIGEN_DEVICE_FUNC Index outerStride() const
result_of< ViewOp(const typename traits< MatrixType >::Scalar &) >::type Scalar
EIGEN_STRONG_INLINE Index cols() const
CwiseUnaryView< ViewOp, MatrixType > Derived
internal::generic_xpr_base< CwiseUnaryView< ViewOp, XprType > >::type Base
const unsigned int DirectAccessBit
const unsigned int LvalueBit
EIGEN_DEVICE_FUNC const Scalar * data() const
Namespace containing all symbols from the Eigen library.
const ViewOp & functor() const
const unsigned int RowMajorBit
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
internal::remove_reference< MatrixTypeNested >::type & nestedExpression()
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived)
remove_all< MatrixTypeNested >::type _MatrixTypeNested
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
MatrixTypeNested m_matrix
const internal::remove_all< MatrixTypeNested >::type & nestedExpression() const
CwiseUnaryViewImpl< ViewOp, MatrixType, typename internal::traits< MatrixType >::StorageKind >::Base Base
internal::dense_xpr_base< CwiseUnaryView< ViewOp, MatrixType > >::type Base
EIGEN_DEVICE_FUNC Index innerStride() const
MatrixType::Nested MatrixTypeNested