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;
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>
90 return ReturnType(derived());
132 template<
typename CustomUnaryOp>
134 inline const CwiseUnaryOp<CustomUnaryOp, const Derived>
135 unaryExpr(
const CustomUnaryOp& func = CustomUnaryOp())
const
137 return CwiseUnaryOp<CustomUnaryOp, const Derived>(derived(), func);
153 template<
typename CustomViewOp>
155 inline const CwiseUnaryView<CustomViewOp, const Derived>
158 return CwiseUnaryView<CustomViewOp, const Derived>(derived(), func);
#define EIGEN_DOC_UNARY_ADDONS(X, Y)
Definition: ArrayBase.h:91
EIGEN_DEVICE_FUNC internal::conditional< Cond, ConjugateReturnType, const Derived & >::type conjugateIf() const
Definition: CommonCwiseUnaryOps.h:87
CwiseUnaryView< internal::scalar_imag_ref_op< Scalar >, Derived > NonConstImagReturnType
Definition: CommonCwiseUnaryOps.h:33
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryView< internal::scalar_real_ref_op< Scalar >, Derived >, Derived & >::type NonConstRealReturnType
Definition: CommonCwiseUnaryOps.h:29
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
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_real_op< Scalar >, const Derived >, const Derived & >::type RealReturnType
Definition: CommonCwiseUnaryOps.h:24
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, const Derived >, const Derived & >::type ConjugateReturnType
Definition: CommonCwiseUnaryOps.h:19
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 const CwiseUnaryOp< CustomUnaryOp, const Derived > unaryExpr(const CustomUnaryOp &func=CustomUnaryOp()) const
Apply a unary operator coefficient-wise.
Definition: CommonCwiseUnaryOps.h:135
EIGEN_DEVICE_FUNC ConjugateReturnType conjugate() const
Definition: CommonCwiseUnaryOps.h:74
EIGEN_DEVICE_FUNC CastXpr< NewType >::Type cast() const
Definition: CommonCwiseUnaryOps.h:62
CwiseUnaryOp< internal::scalar_opposite_op< Scalar >, const Derived > NegativeReturnType
Definition: CommonCwiseUnaryOps.h:35
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
Definition: CommonCwiseUnaryOps.h:48
internal::cast_return_type< Derived, const CwiseUnaryOp< internal::scalar_cast_op< Scalar, NewType >, const Derived > >::type Type
Definition: CommonCwiseUnaryOps.h:48