11 #ifndef EIGEN_CWISE_UNARY_OP_H 12 #define EIGEN_CWISE_UNARY_OP_H 17 template<
typename UnaryOp,
typename XprType>
22 UnaryOp(
const typename XprType::Scalar&)
24 typedef typename XprType::Nested XprTypeNested;
32 template<
typename UnaryOp,
typename XprType,
typename StorageKind>
54 template<
typename UnaryOp,
typename XprType>
64 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
66 : m_xpr(xpr), m_functor(
func) {}
68 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
69 Index rows()
const {
return m_xpr.rows(); }
70 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
71 Index cols()
const {
return m_xpr.cols(); }
74 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
75 const UnaryOp&
functor()
const {
return m_functor; }
78 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
83 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
89 const UnaryOp m_functor;
93 template<
typename UnaryOp,
typename XprType,
typename StorageKind>
103 #endif // EIGEN_CWISE_UNARY_OP_H EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const UnaryOp & functor() const
Definition: CwiseUnaryOp.h:75
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:61
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::remove_all< XprTypeNested >::type & nestedExpression()
Definition: CwiseUnaryOp.h:85
Definition: XprHelper.h:89
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Definition: benchGeometry.cpp:23
Definition: BandTriangularSolver.h:13
Definition: CwiseUnaryOp.h:33
Definition: XprHelper.h:481
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all< XprTypeNested >::type & nestedExpression() const
Definition: CwiseUnaryOp.h:80
Definition: ForwardDeclarations.h:17