Eigen  3.2.92
ArrayCwiseUnaryOps.h
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_log_op<Scalar>, const Derived> LogReturnType;
14 typedef CwiseUnaryOp<internal::scalar_log10_op<Scalar>, const Derived> Log10ReturnType;
15 typedef CwiseUnaryOp<internal::scalar_cos_op<Scalar>, const Derived> CosReturnType;
16 typedef CwiseUnaryOp<internal::scalar_sin_op<Scalar>, const Derived> SinReturnType;
17 typedef CwiseUnaryOp<internal::scalar_tan_op<Scalar>, const Derived> TanReturnType;
18 typedef CwiseUnaryOp<internal::scalar_acos_op<Scalar>, const Derived> AcosReturnType;
19 typedef CwiseUnaryOp<internal::scalar_asin_op<Scalar>, const Derived> AsinReturnType;
20 typedef CwiseUnaryOp<internal::scalar_atan_op<Scalar>, const Derived> AtanReturnType;
21 typedef CwiseUnaryOp<internal::scalar_tanh_op<Scalar>, const Derived> TanhReturnType;
22 typedef CwiseUnaryOp<internal::scalar_sinh_op<Scalar>, const Derived> SinhReturnType;
23 typedef CwiseUnaryOp<internal::scalar_cosh_op<Scalar>, const Derived> CoshReturnType;
24 typedef CwiseUnaryOp<internal::scalar_lgamma_op<Scalar>, const Derived> LgammaReturnType;
25 typedef CwiseUnaryOp<internal::scalar_erf_op<Scalar>, const Derived> ErfReturnType;
26 typedef CwiseUnaryOp<internal::scalar_erfc_op<Scalar>, const Derived> ErfcReturnType;
27 typedef CwiseUnaryOp<internal::scalar_pow_op<Scalar>, const Derived> PowReturnType;
28 typedef CwiseUnaryOp<internal::scalar_square_op<Scalar>, const Derived> SquareReturnType;
29 typedef CwiseUnaryOp<internal::scalar_cube_op<Scalar>, const Derived> CubeReturnType;
30 typedef CwiseUnaryOp<internal::scalar_round_op<Scalar>, const Derived> RoundReturnType;
31 typedef CwiseUnaryOp<internal::scalar_floor_op<Scalar>, const Derived> FloorReturnType;
32 typedef CwiseUnaryOp<internal::scalar_ceil_op<Scalar>, const Derived> CeilReturnType;
33 typedef CwiseUnaryOp<internal::scalar_isnan_op<Scalar>, const Derived> IsNaNReturnType;
34 typedef CwiseUnaryOp<internal::scalar_isinf_op<Scalar>, const Derived> IsInfReturnType;
35 typedef CwiseUnaryOp<internal::scalar_isfinite_op<Scalar>, const Derived> IsFiniteReturnType;
36 
44 EIGEN_DEVICE_FUNC
45 EIGEN_STRONG_INLINE const AbsReturnType
46 abs() const
47 {
48  return AbsReturnType(derived());
49 }
50 
58 EIGEN_DEVICE_FUNC
59 EIGEN_STRONG_INLINE const ArgReturnType
60 arg() const
61 {
62  return ArgReturnType(derived());
63 }
64 
72 EIGEN_DEVICE_FUNC
73 EIGEN_STRONG_INLINE const Abs2ReturnType
74 abs2() const
75 {
76  return Abs2ReturnType(derived());
77 }
78 
89 EIGEN_DEVICE_FUNC
90 inline const ExpReturnType
91 exp() const
92 {
93  return ExpReturnType(derived());
94 }
95 
106 EIGEN_DEVICE_FUNC
107 inline const LogReturnType
108 log() const
109 {
110  return LogReturnType(derived());
111 }
112 
122 EIGEN_DEVICE_FUNC
123 inline const Log10ReturnType
124 log10() const
125 {
126  return Log10ReturnType(derived());
127 }
128 
139 EIGEN_DEVICE_FUNC
140 inline const SqrtReturnType
141 sqrt() const
142 {
143  return SqrtReturnType(derived());
144 }
145 
155 EIGEN_DEVICE_FUNC
156 inline const RsqrtReturnType
157 rsqrt() const
158 {
159  return RsqrtReturnType(derived());
160 }
161 
171 EIGEN_DEVICE_FUNC
172 inline const SignReturnType
173 sign() const
174 {
175  return SignReturnType(derived());
176 }
177 
178 
189 EIGEN_DEVICE_FUNC
190 inline const CosReturnType
191 cos() const
192 {
193  return CosReturnType(derived());
194 }
195 
196 
207 EIGEN_DEVICE_FUNC
208 inline const SinReturnType
209 sin() const
210 {
211  return SinReturnType(derived());
212 }
213 
221 EIGEN_DEVICE_FUNC
222 inline const TanReturnType
223 tan() const
224 {
225  return TanReturnType(derived());
226 }
227 
235 inline const AtanReturnType
236 atan() const
237 {
238  return AtanReturnType(derived());
239 }
240 
248 EIGEN_DEVICE_FUNC
249 inline const AcosReturnType
250 acos() const
251 {
252  return AcosReturnType(derived());
253 }
254 
262 EIGEN_DEVICE_FUNC
263 inline const AsinReturnType
264 asin() const
265 {
266  return AsinReturnType(derived());
267 }
268 
276 inline const TanhReturnType
277 tanh() const
278 {
279  return TanhReturnType(derived());
280 }
281 
289 inline const SinhReturnType
290 sinh() const
291 {
292  return SinhReturnType(derived());
293 }
294 
302 inline const CoshReturnType
303 cosh() const
304 {
305  return CoshReturnType(derived());
306 }
307 
315 inline const LgammaReturnType
316 lgamma() const
317 {
318  return LgammaReturnType(derived());
319 }
320 
329 inline const ErfReturnType
330 erf() const
331 {
332  return ErfReturnType(derived());
333 }
334 
343 inline const ErfcReturnType
344 erfc() const
345 {
346  return ErfcReturnType(derived());
347 }
348 
359 EIGEN_DEVICE_FUNC
360 inline const PowReturnType
361 pow(const Scalar& exponent) const
362 {
363  return PowReturnType(derived(), internal::scalar_pow_op<Scalar>(exponent));
364 }
365 
366 
374 EIGEN_DEVICE_FUNC
375 inline const InverseReturnType
376 inverse() const
377 {
378  return InverseReturnType(derived());
379 }
380 
388 EIGEN_DEVICE_FUNC
389 inline const SquareReturnType
390 square() const
391 {
392  return SquareReturnType(derived());
393 }
394 
402 EIGEN_DEVICE_FUNC
403 inline const CubeReturnType
404 cube() const
405 {
406  return CubeReturnType(derived());
407 }
408 
416 inline const RoundReturnType
417 round() const
418 {
419  return RoundReturnType(derived());
420 }
421 
429 inline const FloorReturnType
430 floor() const
431 {
432  return FloorReturnType(derived());
433 }
434 
442 inline const CeilReturnType
443 ceil() const
444 {
445  return CeilReturnType(derived());
446 }
447 
455 inline const IsNaNReturnType
456 isNaN() const
457 {
458  return IsNaNReturnType(derived());
459 }
460 
468 inline const IsInfReturnType
469 isInf() const
470 {
471  return IsInfReturnType(derived());
472 }
473 
481 inline const IsFiniteReturnType
482 isFinite() const
483 {
484  return IsFiniteReturnType(derived());
485 }
486 
496 EIGEN_DEVICE_FUNC
497 inline const BooleanNotReturnType
498 operator!() const
499 {
500  EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value),
501  THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
502  return BooleanNotReturnType(derived());
503 }