13 #ifndef EIGEN_PARSED_BY_DOXYGEN 16 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
17 const CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>,
const Derived>,
21 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
22 const CwiseUnaryOp<internal::scalar_real_op<Scalar>,
const Derived>,
26 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
27 CwiseUnaryView<internal::scalar_real_ref_op<Scalar>, Derived>,
31 typedef CwiseUnaryOp<internal::scalar_imag_op<Scalar>,
const Derived>
ImagReturnType;
37 #endif // not EIGEN_PARSED_BY_DOXYGEN 48 template<
class NewType>
struct CastXpr {
typedef typename internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<Scalar, NewType>,
const Derived> >::type
Type; };
59 template<
typename NewType>
118 template<
typename CustomUnaryOp>
120 inline const CwiseUnaryOp<CustomUnaryOp, const Derived>
121 unaryExpr(
const CustomUnaryOp& func = CustomUnaryOp())
const 123 return CwiseUnaryOp<CustomUnaryOp, const Derived>(derived(), func);
139 template<
typename CustomViewOp>
141 inline const CwiseUnaryView<CustomViewOp, const Derived>
144 return CwiseUnaryView<CustomViewOp, const Derived>(derived(), func);
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
EIGEN_DEVICE_FUNC RealReturnType real() const
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_real_op< Scalar >, const Derived >, const Derived & >::type RealReturnType
CwiseUnaryOp< internal::scalar_opposite_op< Scalar >, const Derived > NegativeReturnType
EIGEN_DEVICE_FUNC const CwiseUnaryView< CustomViewOp, const Derived > unaryViewExpr(const CustomViewOp &func=CustomViewOp()) const
EIGEN_DEVICE_FUNC const CwiseUnaryOp< CustomUnaryOp, const Derived > unaryExpr(const CustomUnaryOp &func=CustomUnaryOp()) const
Apply a unary operator coefficient-wise.
EIGEN_DEVICE_FUNC ConjugateReturnType conjugate() const
EIGEN_DEVICE_FUNC CastXpr< NewType >::Type cast() const
CwiseUnaryView< internal::scalar_imag_ref_op< Scalar >, Derived > NonConstImagReturnType
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, const Derived >, const Derived & >::type ConjugateReturnType
CwiseUnaryOp< internal::scalar_imag_op< Scalar >, const Derived > ImagReturnType
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryView< internal::scalar_real_ref_op< Scalar >, Derived >, Derived & >::type NonConstRealReturnType
internal::cast_return_type< Derived, const CwiseUnaryOp< internal::scalar_cast_op< Scalar, NewType >, const Derived > >::type Type