13#ifndef EIGEN_PARSED_BY_DOXYGEN
16typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
17 const CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>,
const Derived>,
21typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
22 const CwiseUnaryOp<internal::scalar_real_op<Scalar>,
const Derived>,
26typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
27 CwiseUnaryView<internal::scalar_real_ref_op<Scalar>, Derived>,
31typedef CwiseUnaryOp<internal::scalar_imag_op<Scalar>,
const Derived>
ImagReturnType;
48template<
class NewType>
struct CastXpr {
typedef typename internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<Scalar, NewType>,
const Derived> >
::type Type; };
59template<
typename NewType>
90 return ReturnType(derived());
132template<
typename CustomUnaryOp>
134inline const CwiseUnaryOp<CustomUnaryOp, const Derived>
135unaryExpr(
const CustomUnaryOp& func = CustomUnaryOp())
const
137 return CwiseUnaryOp<CustomUnaryOp, const Derived>(derived(), func);
153template<
typename CustomViewOp>
155inline const CwiseUnaryView<CustomViewOp, const Derived>
158 return CwiseUnaryView<CustomViewOp, const Derived>(derived(), func);
EIGEN_DEVICE_FUNC const CwiseUnaryOp< CustomUnaryOp, const Derived > unaryExpr(const CustomUnaryOp &func=CustomUnaryOp()) const
Apply a unary operator coefficient-wise.
Definition: CommonCwiseUnaryOps.h:135
internal::conditional< NumTraits< Scalar >::IsComplex, constCwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, constDerived >, constDerived & >::type ConjugateReturnType
Definition: CommonCwiseUnaryOps.h:19
CwiseUnaryView< internal::scalar_imag_ref_op< Scalar >, Derived > NonConstImagReturnType
Definition: CommonCwiseUnaryOps.h:33
EIGEN_DEVICE_FUNC const NegativeReturnType operator-() const
Definition: CommonCwiseUnaryOps.h:45
EIGEN_DEVICE_FUNC RealReturnType real() const
Definition: CommonCwiseUnaryOps.h:100
EIGEN_DEVICE_FUNC const CwiseUnaryView< CustomViewOp, const Derived > unaryViewExpr(const CustomViewOp &func=CustomViewOp()) const
Definition: CommonCwiseUnaryOps.h:156
EIGEN_DEVICE_FUNC internal::conditional< Cond, ConjugateReturnType, constDerived & >::type conjugateIf() const
Definition: CommonCwiseUnaryOps.h:87
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
Definition: CommonCwiseUnaryOps.h:109
CwiseUnaryOp< internal::scalar_imag_op< Scalar >, const Derived > ImagReturnType
Definition: CommonCwiseUnaryOps.h:31
EIGEN_DEVICE_FUNC CastXpr< NewType >::Type cast() const
Definition: CommonCwiseUnaryOps.h:62
internal::conditional< NumTraits< Scalar >::IsComplex, constCwiseUnaryOp< internal::scalar_real_op< Scalar >, constDerived >, constDerived & >::type RealReturnType
Definition: CommonCwiseUnaryOps.h:24
EIGEN_DEVICE_FUNC ConjugateReturnType conjugate() const
Definition: CommonCwiseUnaryOps.h:74
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryView< internal::scalar_real_ref_op< Scalar >, Derived >, Derived & >::type NonConstRealReturnType
Definition: CommonCwiseUnaryOps.h:29
CwiseUnaryOp< internal::scalar_opposite_op< Scalar >, const Derived > NegativeReturnType
Definition: CommonCwiseUnaryOps.h:35
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
Definition: SparseMatrixBase.h:158
type
Definition: core.h:575
Definition: CommonCwiseUnaryOps.h:48
internal::cast_return_type< Derived, constCwiseUnaryOp< internal::scalar_cast_op< Scalar, NewType >, constDerived > >::type Type
Definition: CommonCwiseUnaryOps.h:48