Please, help us to better know about our user community by answering the following short survey: https://forms.gle/wpyrxWi18ox9Z5ae9
Eigen  3.4.0
 
Loading...
Searching...
No Matches
ArrayCwiseUnaryOps.h
1
2
3typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> AbsReturnType;
4typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> ArgReturnType;
5typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Abs2ReturnType;
6typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> SqrtReturnType;
7typedef CwiseUnaryOp<internal::scalar_rsqrt_op<Scalar>, const Derived> RsqrtReturnType;
8typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> SignReturnType;
9typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> InverseReturnType;
10typedef CwiseUnaryOp<internal::scalar_boolean_not_op<Scalar>, const Derived> BooleanNotReturnType;
11
12typedef CwiseUnaryOp<internal::scalar_exp_op<Scalar>, const Derived> ExpReturnType;
13typedef CwiseUnaryOp<internal::scalar_expm1_op<Scalar>, const Derived> Expm1ReturnType;
14typedef CwiseUnaryOp<internal::scalar_log_op<Scalar>, const Derived> LogReturnType;
15typedef CwiseUnaryOp<internal::scalar_log1p_op<Scalar>, const Derived> Log1pReturnType;
16typedef CwiseUnaryOp<internal::scalar_log10_op<Scalar>, const Derived> Log10ReturnType;
17typedef CwiseUnaryOp<internal::scalar_log2_op<Scalar>, const Derived> Log2ReturnType;
18typedef CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> CosReturnType;
19typedef CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> SinReturnType;
20typedef CwiseUnaryOp<internal::scalar_tan_op<Scalar>, const Derived> TanReturnType;
21typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturnType;
22typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType;
23typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType;
24typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType;
25typedef CwiseUnaryOp<internal::scalar_logistic_op<Scalar>, const Derived> LogisticReturnType;
26typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType;
27#if EIGEN_HAS_CXX11_MATH
28typedef CwiseUnaryOp<internal::scalar_atanh_op<Scalar>, const Derived> AtanhReturnType;
29typedef CwiseUnaryOp<internal::scalar_asinh_op<Scalar>, const Derived> AsinhReturnType;
30typedef CwiseUnaryOp<internal::scalar_acosh_op<Scalar>, const Derived> AcoshReturnType;
31#endif
32typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType;
33typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType;
34typedef CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> CubeReturnType;
35typedef CwiseUnaryOp<internal::scalar_round_op<Scalar>, const Derived> RoundReturnType;
36typedef CwiseUnaryOp<internal::scalar_rint_op<Scalar>, const Derived> RintReturnType;
37typedef CwiseUnaryOp<internal::scalar_floor_op<Scalar>, const Derived> FloorReturnType;
38typedef CwiseUnaryOp<internal::scalar_ceil_op<Scalar>, const Derived> CeilReturnType;
39typedef CwiseUnaryOp<internal::scalar_isnan_op<Scalar>, const Derived> IsNaNReturnType;
40typedef CwiseUnaryOp<internal::scalar_isinf_op<Scalar>, const Derived> IsInfReturnType;
41typedef CwiseUnaryOp<internal::scalar_isfinite_op<Scalar>, const Derived> IsFiniteReturnType;
42
50EIGEN_DEVICE_FUNC
51EIGEN_STRONG_INLINE const AbsReturnType
52abs() const
53{
54 return AbsReturnType(derived());
55}
56
64EIGEN_DEVICE_FUNC
65EIGEN_STRONG_INLINE const ArgReturnType
66arg() const
67{
68 return ArgReturnType(derived());
69}
70
78EIGEN_DEVICE_FUNC
79EIGEN_STRONG_INLINE const Abs2ReturnType
80abs2() const
81{
82 return Abs2ReturnType(derived());
83}
84
95EIGEN_DEVICE_FUNC
96inline const ExpReturnType
97exp() const
98{
99 return ExpReturnType(derived());
100}
101
109EIGEN_DEVICE_FUNC
110inline const Expm1ReturnType
111expm1() const
112{
113 return Expm1ReturnType(derived());
114}
115
126EIGEN_DEVICE_FUNC
127inline const LogReturnType
128log() const
129{
130 return LogReturnType(derived());
131}
132
140EIGEN_DEVICE_FUNC
141inline const Log1pReturnType
142log1p() const
143{
144 return Log1pReturnType(derived());
145}
146
156EIGEN_DEVICE_FUNC
157inline const Log10ReturnType
158log10() const
159{
160 return Log10ReturnType(derived());
161}
162
168EIGEN_DEVICE_FUNC
169inline const Log2ReturnType
170log2() const
171{
172 return Log2ReturnType(derived());
173}
174
185EIGEN_DEVICE_FUNC
186inline const SqrtReturnType
187sqrt() const
188{
189 return SqrtReturnType(derived());
190}
191
201EIGEN_DEVICE_FUNC
202inline const RsqrtReturnType
203rsqrt() const
204{
205 return RsqrtReturnType(derived());
206}
207
217EIGEN_DEVICE_FUNC
218inline const SignReturnType
219sign() const
220{
221 return SignReturnType(derived());
222}
223
224
235EIGEN_DEVICE_FUNC
236inline const CosReturnType
237cos() const
238{
239 return CosReturnType(derived());
240}
241
242
253EIGEN_DEVICE_FUNC
254inline const SinReturnType
255sin() const
256{
257 return SinReturnType(derived());
258}
259
267EIGEN_DEVICE_FUNC
268inline const TanReturnType
269tan() const
270{
271 return TanReturnType(derived());
272}
273
281EIGEN_DEVICE_FUNC
282inline const AtanReturnType
283atan() const
284{
285 return AtanReturnType(derived());
286}
287
295EIGEN_DEVICE_FUNC
296inline const AcosReturnType
297acos() const
298{
299 return AcosReturnType(derived());
300}
301
309EIGEN_DEVICE_FUNC
310inline const AsinReturnType
311asin() const
312{
313 return AsinReturnType(derived());
314}
315
323EIGEN_DEVICE_FUNC
324inline const TanhReturnType
325tanh() const
326{
327 return TanhReturnType(derived());
328}
329
337EIGEN_DEVICE_FUNC
338inline const SinhReturnType
339sinh() const
340{
341 return SinhReturnType(derived());
342}
343
351EIGEN_DEVICE_FUNC
352inline const CoshReturnType
353cosh() const
354{
355 return CoshReturnType(derived());
356}
357
358#if EIGEN_HAS_CXX11_MATH
363EIGEN_DEVICE_FUNC
364inline const AtanhReturnType
365atanh() const
366{
367 return AtanhReturnType(derived());
368}
369
374EIGEN_DEVICE_FUNC
375inline const AsinhReturnType
376asinh() const
377{
378 return AsinhReturnType(derived());
379}
380
385EIGEN_DEVICE_FUNC
386inline const AcoshReturnType
387acosh() const
388{
389 return AcoshReturnType(derived());
390}
391#endif
392
395EIGEN_DEVICE_FUNC
396inline const LogisticReturnType
397logistic() const
398{
399 return LogisticReturnType(derived());
400}
401
409EIGEN_DEVICE_FUNC
410inline const InverseReturnType
411inverse() const
412{
413 return InverseReturnType(derived());
414}
415
423EIGEN_DEVICE_FUNC
424inline const SquareReturnType
425square() const
426{
427 return SquareReturnType(derived());
428}
429
437EIGEN_DEVICE_FUNC
438inline const CubeReturnType
439cube() const
440{
441 return CubeReturnType(derived());
442}
443
451EIGEN_DEVICE_FUNC
452inline const RintReturnType
453rint() const
454{
455 return RintReturnType(derived());
456}
457
465EIGEN_DEVICE_FUNC
466inline const RoundReturnType
467round() const
468{
469 return RoundReturnType(derived());
470}
471
479EIGEN_DEVICE_FUNC
480inline const FloorReturnType
481floor() const
482{
483 return FloorReturnType(derived());
484}
485
493EIGEN_DEVICE_FUNC
494inline const CeilReturnType
495ceil() const
496{
497 return CeilReturnType(derived());
498}
499
500template<int N> struct ShiftRightXpr {
501 typedef CwiseUnaryOp<internal::scalar_shift_right_op<Scalar, N>, const Derived> Type;
502};
503
511template<int N>
512EIGEN_DEVICE_FUNC
513typename ShiftRightXpr<N>::Type
514shiftRight() const
515{
516 return typename ShiftRightXpr<N>::Type(derived());
517}
518
519
520template<int N> struct ShiftLeftXpr {
521 typedef CwiseUnaryOp<internal::scalar_shift_left_op<Scalar, N>, const Derived> Type;
522};
523
531template<int N>
532EIGEN_DEVICE_FUNC
533typename ShiftLeftXpr<N>::Type
534shiftLeft() const
535{
536 return typename ShiftLeftXpr<N>::Type(derived());
537}
538
546EIGEN_DEVICE_FUNC
547inline const IsNaNReturnType
548isNaN() const
549{
550 return IsNaNReturnType(derived());
551}
552
560EIGEN_DEVICE_FUNC
561inline const IsInfReturnType
562isInf() const
563{
564 return IsInfReturnType(derived());
565}
566
574EIGEN_DEVICE_FUNC
575inline const IsFiniteReturnType
576isFinite() const
577{
578 return IsFiniteReturnType(derived());
579}
580
590EIGEN_DEVICE_FUNC
591inline const BooleanNotReturnType
592operator!() const
593{
594 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value),
595 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
596 return BooleanNotReturnType(derived());
597}
598
599
600// --- SpecialFunctions module ---
601
602typedef CwiseUnaryOp<internal::scalar_lgamma_op<Scalar>, const Derived> LgammaReturnType;
603typedef CwiseUnaryOp<internal::scalar_digamma_op<Scalar>, const Derived> DigammaReturnType;
604typedef CwiseUnaryOp<internal::scalar_erf_op<Scalar>, const Derived> ErfReturnType;
605typedef CwiseUnaryOp<internal::scalar_erfc_op<Scalar>, const Derived> ErfcReturnType;
606typedef CwiseUnaryOp<internal::scalar_ndtri_op<Scalar>, const Derived> NdtriReturnType;
607
618EIGEN_DEVICE_FUNC
619inline const LgammaReturnType
620lgamma() const
621{
622 return LgammaReturnType(derived());
623}
624
635EIGEN_DEVICE_FUNC
636inline const DigammaReturnType
637digamma() const
638{
639 return DigammaReturnType(derived());
640}
641
653EIGEN_DEVICE_FUNC
654inline const ErfReturnType
655erf() const
656{
657 return ErfReturnType(derived());
658}
659
671EIGEN_DEVICE_FUNC
672inline const ErfcReturnType
673erfc() const
674{
675 return ErfcReturnType(derived());
676}
677
691EIGEN_DEVICE_FUNC
692inline const NdtriReturnType
693ndtri() const
694{
695 return NdtriReturnType(derived());
696}
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_inverse_op< typename Derived::Scalar >, const Derived > inverse(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_rsqrt_op< typename Derived::Scalar >, const Derived > rsqrt(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_cube_op< typename Derived::Scalar >, const Derived > cube(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_square_op< typename Derived::Scalar >, const Derived > square(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_sign_op< typename Derived::Scalar >, const Derived > sign(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_logistic_op< typename Derived::Scalar >, const Derived > logistic(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_lgamma_op< typename Derived::Scalar >, const Derived > lgamma(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_abs2_op< typename Derived::Scalar >, const Derived > abs2(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_erf_op< typename Derived::Scalar >, const Derived > erf(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_erfc_op< typename Derived::Scalar >, const Derived > erfc(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_ndtri_op< typename Derived::Scalar >, const Derived > ndtri(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_arg_op< typename Derived::Scalar >, const Derived > arg(const Eigen::ArrayBase< Derived > &x)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_digamma_op< typename Derived::Scalar >, const Derived > digamma(const Eigen::ArrayBase< Derived > &x)