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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:31:55