11#ifndef EIGEN_CWISE_UNARY_OP_H
12#define EIGEN_CWISE_UNARY_OP_H
37template<
typename UnaryOp,
typename XprType>
42 UnaryOp(
typename XprType::Scalar)
44 typedef typename XprType::Nested XprTypeNested;
45 typedef typename remove_reference<XprTypeNested>::type _XprTypeNested;
52template<
typename UnaryOp,
typename XprType,
typename StorageKind>
55template<
typename UnaryOp,
typename XprType>
66 : m_xpr(
xpr), m_functor(func) {}
69 EIGEN_STRONG_INLINE Index rows()
const {
return m_xpr.rows(); }
71 EIGEN_STRONG_INLINE Index cols()
const {
return m_xpr.cols(); }
88 typename XprType::Nested m_xpr;
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:57
EIGEN_DEVICE_FUNC const internal::remove_all< typenameXprType::Nested >::type & nestedExpression() const
Definition CwiseUnaryOp.h:80
EIGEN_DEVICE_FUNC const UnaryOp & functor() const
Definition CwiseUnaryOp.h:75
EIGEN_DEVICE_FUNC internal::remove_all< typenameXprType::Nested >::type & nestedExpression()
Definition CwiseUnaryOp.h:85
Pseudo expression representing a solving operation.
Definition Solve.h:63
Definition XprHelper.h:50
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition Constants.h:61
Definition XprHelper.h:445
Definition ForwardDeclarations.h:17