11#ifndef EIGEN_CWISE_UNARY_OP_H
12#define EIGEN_CWISE_UNARY_OP_H
17template<
typename UnaryOp,
typename XprType>
22 UnaryOp(
const typename XprType::Scalar&)
24 typedef typename XprType::Nested XprTypeNested;
25 typedef typename remove_reference<XprTypeNested>::type _XprTypeNested;
32template<
typename UnaryOp,
typename XprType,
typename StorageKind>
54template<
typename UnaryOp,
typename XprType>
62 typedef typename internal::remove_all<XprType>::type NestedExpression;
64 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
66 : m_xpr(
xpr), m_functor(func) {}
68 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR
69 Index rows()
const EIGEN_NOEXCEPT {
return m_xpr.rows(); }
70 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR
71 Index cols()
const EIGEN_NOEXCEPT {
return m_xpr.cols(); }
74 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
78 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
79 const typename internal::remove_all<XprTypeNested>::type&
83 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
84 typename internal::remove_all<XprTypeNested>::type&
93template<
typename UnaryOp,
typename XprType,
typename StorageKind>
Definition CwiseUnaryOp.h:96
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition CwiseUnaryOp.h:56
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const UnaryOp & functor() const
Definition CwiseUnaryOp.h:75
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & nestedExpression() const
Definition CwiseUnaryOp.h:80
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::remove_all< XprTypeNested >::type & nestedExpression()
Definition CwiseUnaryOp.h:85
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Definition XprHelper.h:110
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
Definition XprHelper.h:501
Definition ForwardDeclarations.h:17