11 #ifndef EIGEN_CWISE_UNARY_OP_H
12 #define EIGEN_CWISE_UNARY_OP_H
19 template<
typename UnaryOp,
typename XprType>
20 struct traits<CwiseUnaryOp<UnaryOp, XprType> >
23 typedef typename result_of<
24 UnaryOp(
const typename XprType::Scalar&)
26 typedef typename XprType::Nested XprTypeNested;
27 typedef std::remove_reference_t<XprTypeNested> XprTypeNested_;
34 template<
typename UnaryOp,
typename XprType,
typename StorageKind>
35 class CwiseUnaryOpImpl;
56 template<
typename UnaryOp,
typename XprType>
67 explicit
CwiseUnaryOp(const XprType& xpr, const UnaryOp& func = UnaryOp())
95 template<
typename UnaryOp,
typename XprType,
typename StorageKind>
97 :
public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
100 typedef typename internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
Base;
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
#define EIGEN_DEVICE_FUNC
internal::generic_xpr_base< CwiseUnaryOp< UnaryOp, XprType > >::type Base
Generic expression where a coefficient-wise unary operator is applied to an expression.
CwiseUnaryOpImpl< UnaryOp, XprType, typename internal::traits< XprType >::StorageKind >::Base Base
internal::remove_all_t< XprType > NestedExpression
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
internal::ref_selector< XprType >::type XprTypeNested
const UnaryOp & functor() const
const internal::remove_all_t< XprTypeNested > & nestedExpression() const
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
internal::remove_all_t< XprTypeNested > & nestedExpression()
const unsigned int RowMajorBit
typename remove_all< T >::type remove_all_t
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.