GenericPacketMath.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
6 //
7 // This Source Code Form is subject to the terms of the Mozilla
8 // Public License v. 2.0. If a copy of the MPL was not distributed
9 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11 #ifndef EIGEN_GENERIC_PACKET_MATH_H
12 #define EIGEN_GENERIC_PACKET_MATH_H
13 
14 namespace Eigen {
15 
16 namespace internal {
17 
26 #ifndef EIGEN_DEBUG_ALIGNED_LOAD
27 #define EIGEN_DEBUG_ALIGNED_LOAD
28 #endif
29 
30 #ifndef EIGEN_DEBUG_UNALIGNED_LOAD
31 #define EIGEN_DEBUG_UNALIGNED_LOAD
32 #endif
33 
34 #ifndef EIGEN_DEBUG_ALIGNED_STORE
35 #define EIGEN_DEBUG_ALIGNED_STORE
36 #endif
37 
38 #ifndef EIGEN_DEBUG_UNALIGNED_STORE
39 #define EIGEN_DEBUG_UNALIGNED_STORE
40 #endif
41 
43 {
44  enum {
46 
47  HasAdd = 1,
48  HasSub = 1,
49  HasMul = 1,
50  HasNegate = 1,
51  HasAbs = 1,
52  HasArg = 0,
53  HasAbs2 = 1,
54  HasMin = 1,
55  HasMax = 1,
56  HasConj = 1,
58  HasBlend = 0,
59 
60  HasDiv = 0,
61  HasSqrt = 0,
62  HasRsqrt = 0,
63  HasExp = 0,
64  HasLog = 0,
65  HasLog1p = 0,
66  HasLog10 = 0,
67  HasPow = 0,
68 
69  HasSin = 0,
70  HasCos = 0,
71  HasTan = 0,
72  HasASin = 0,
73  HasACos = 0,
74  HasATan = 0,
75  HasSinh = 0,
76  HasCosh = 0,
77  HasTanh = 0,
78  HasLGamma = 0,
80  HasZeta = 0,
82  HasErf = 0,
83  HasErfc = 0,
84  HasIGamma = 0,
87 
88  HasRound = 0,
89  HasFloor = 0,
90  HasCeil = 0,
91 
92  HasSign = 0
93  };
94 };
95 
96 template<typename T> struct packet_traits : default_packet_traits
97 {
98  typedef T type;
99  typedef T half;
100  enum {
102  size = 1,
105  };
106  enum {
107  HasAdd = 0,
108  HasSub = 0,
109  HasMul = 0,
111  HasAbs = 0,
112  HasAbs2 = 0,
113  HasMin = 0,
114  HasMax = 0,
115  HasConj = 0,
117  };
118 };
119 
120 template<typename T> struct packet_traits<const T> : packet_traits<T> { };
121 
122 template <typename Src, typename Tgt> struct type_casting_traits {
123  enum {
127  };
128 };
129 
130 
132 template <typename SrcPacket, typename TgtPacket>
133 EIGEN_DEVICE_FUNC inline TgtPacket
134 pcast(const SrcPacket& a) {
135  return static_cast<TgtPacket>(a);
136 }
137 template <typename SrcPacket, typename TgtPacket>
138 EIGEN_DEVICE_FUNC inline TgtPacket
139 pcast(const SrcPacket& a, const SrcPacket& /*b*/) {
140  return static_cast<TgtPacket>(a);
141 }
142 
143 template <typename SrcPacket, typename TgtPacket>
144 EIGEN_DEVICE_FUNC inline TgtPacket
145 pcast(const SrcPacket& a, const SrcPacket& /*b*/, const SrcPacket& /*c*/, const SrcPacket& /*d*/) {
146  return static_cast<TgtPacket>(a);
147 }
148 
150 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
151 padd(const Packet& a,
152  const Packet& b) { return a+b; }
153 
155 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
156 psub(const Packet& a,
157  const Packet& b) { return a-b; }
158 
160 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
161 pnegate(const Packet& a) { return -a; }
162 
165 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
166 pconj(const Packet& a) { return numext::conj(a); }
167 
169 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
170 pmul(const Packet& a,
171  const Packet& b) { return a*b; }
172 
174 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
175 pdiv(const Packet& a,
176  const Packet& b) { return a/b; }
177 
179 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
180 pmin(const Packet& a,
181  const Packet& b) { return numext::mini(a, b); }
182 
184 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
185 pmax(const Packet& a,
186  const Packet& b) { return numext::maxi(a, b); }
187 
189 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
190 pabs(const Packet& a) { using std::abs; return abs(a); }
191 
193 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
194 parg(const Packet& a) { using numext::arg; return arg(a); }
195 
197 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
198 pand(const Packet& a, const Packet& b) { return a & b; }
199 
201 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
202 por(const Packet& a, const Packet& b) { return a | b; }
203 
205 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
206 pxor(const Packet& a, const Packet& b) { return a ^ b; }
207 
209 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
210 pandnot(const Packet& a, const Packet& b) { return a & (!b); }
211 
213 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
214 pload(const typename unpacket_traits<Packet>::type* from) { return *from; }
215 
217 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
218 ploadu(const typename unpacket_traits<Packet>::type* from) { return *from; }
219 
221 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
222 pset1(const typename unpacket_traits<Packet>::type& a) { return a; }
223 
225 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
226 pload1(const typename unpacket_traits<Packet>::type *a) { return pset1<Packet>(*a); }
227 
233 template<typename Packet> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet
234 ploaddup(const typename unpacket_traits<Packet>::type* from) { return *from; }
235 
242 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
244 { return pload1<Packet>(from); }
245 
255 template<typename Packet> EIGEN_DEVICE_FUNC
256 inline void pbroadcast4(const typename unpacket_traits<Packet>::type *a,
257  Packet& a0, Packet& a1, Packet& a2, Packet& a3)
258 {
259  a0 = pload1<Packet>(a+0);
260  a1 = pload1<Packet>(a+1);
261  a2 = pload1<Packet>(a+2);
262  a3 = pload1<Packet>(a+3);
263 }
264 
272 template<typename Packet> EIGEN_DEVICE_FUNC
273 inline void pbroadcast2(const typename unpacket_traits<Packet>::type *a,
274  Packet& a0, Packet& a1)
275 {
276  a0 = pload1<Packet>(a+0);
277  a1 = pload1<Packet>(a+1);
278 }
279 
281 template<typename Packet> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet
282 plset(const typename unpacket_traits<Packet>::type& a) { return a; }
283 
285 template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline void pstore(Scalar* to, const Packet& from)
286 { (*to) = from; }
287 
289 template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline void pstoreu(Scalar* to, const Packet& from)
290 { (*to) = from; }
291 
292  template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline Packet pgather(const Scalar* from, Index /*stride*/)
293  { return ploadu<Packet>(from); }
294 
295  template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline void pscatter(Scalar* to, const Packet& from, Index /*stride*/)
296  { pstore(to, from); }
297 
299 template<typename Scalar> EIGEN_DEVICE_FUNC inline void prefetch(const Scalar* addr)
300 {
301 #ifdef __CUDA_ARCH__
302 #if defined(__LP64__)
303  // 64-bit pointer operand constraint for inlined asm
304  asm(" prefetch.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
305 #else
306  // 32-bit pointer operand constraint for inlined asm
307  asm(" prefetch.L1 [ %1 ];" : "=r"(addr) : "r"(addr));
308 #endif
309 #elif (!EIGEN_COMP_MSVC) && (EIGEN_COMP_GNUC || EIGEN_COMP_CLANG || EIGEN_COMP_ICC)
310  __builtin_prefetch(addr);
311 #endif
312 }
313 
315 template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type pfirst(const Packet& a)
316 { return a; }
317 
319 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
320 preduxp(const Packet* vecs) { return vecs[0]; }
321 
323 template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type predux(const Packet& a)
324 { return a; }
325 
330 template<typename Packet> EIGEN_DEVICE_FUNC inline
331 typename conditional<(unpacket_traits<Packet>::size%8)==0,typename unpacket_traits<Packet>::half,Packet>::type
333 { return a; }
334 
336 template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type predux_mul(const Packet& a)
337 { return a; }
338 
340 template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type predux_min(const Packet& a)
341 { return a; }
342 
344 template<typename Packet> EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type predux_max(const Packet& a)
345 { return a; }
346 
348 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet preverse(const Packet& a)
349 { return a; }
350 
352 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a)
353 {
354  // FIXME: uncomment the following in case we drop the internal imag and real functions.
355 // using std::imag;
356 // using std::real;
357  return Packet(imag(a),real(a));
358 }
359 
360 /**************************
361 * Special math functions
362 ***************************/
363 
366 Packet psin(const Packet& a) { using std::sin; return sin(a); }
367 
370 Packet pcos(const Packet& a) { using std::cos; return cos(a); }
371 
374 Packet ptan(const Packet& a) { using std::tan; return tan(a); }
375 
378 Packet pasin(const Packet& a) { using std::asin; return asin(a); }
379 
382 Packet pacos(const Packet& a) { using std::acos; return acos(a); }
383 
386 Packet patan(const Packet& a) { using std::atan; return atan(a); }
387 
390 Packet psinh(const Packet& a) { using std::sinh; return sinh(a); }
391 
394 Packet pcosh(const Packet& a) { using std::cosh; return cosh(a); }
395 
398 Packet ptanh(const Packet& a) { using std::tanh; return tanh(a); }
399 
402 Packet pexp(const Packet& a) { using std::exp; return exp(a); }
403 
406 Packet plog(const Packet& a) { using std::log; return log(a); }
407 
410 Packet plog1p(const Packet& a) { return numext::log1p(a); }
411 
414 Packet plog10(const Packet& a) { using std::log10; return log10(a); }
415 
418 Packet psqrt(const Packet& a) { using std::sqrt; return sqrt(a); }
419 
423  return pdiv(pset1<Packet>(1), psqrt(a));
424 }
425 
428 Packet pround(const Packet& a) { using numext::round; return round(a); }
429 
432 Packet pfloor(const Packet& a) { using numext::floor; return floor(a); }
433 
436 Packet pceil(const Packet& a) { using numext::ceil; return ceil(a); }
437 
438 /***************************************************************************
439 * The following functions might not have to be overwritten for vectorized types
440 ***************************************************************************/
441 
443 // NOTE: this function must really be templated on the packet type (think about different packet types for the same scalar type)
444 template<typename Packet>
445 inline void pstore1(typename unpacket_traits<Packet>::type* to, const typename unpacket_traits<Packet>::type& a)
446 {
447  pstore(to, pset1<Packet>(a));
448 }
449 
451 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
452 pmadd(const Packet& a,
453  const Packet& b,
454  const Packet& c)
455 { return padd(pmul(a, b),c); }
456 
459 template<typename Packet, int Alignment>
460 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt(const typename unpacket_traits<Packet>::type* from)
461 {
462  if(Alignment >= unpacket_traits<Packet>::alignment)
463  return pload<Packet>(from);
464  else
465  return ploadu<Packet>(from);
466 }
467 
470 template<typename Scalar, typename Packet, int Alignment>
471 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pstoret(Scalar* to, const Packet& from)
472 {
473  if(Alignment >= unpacket_traits<Packet>::alignment)
474  pstore(to, from);
475  else
476  pstoreu(to, from);
477 }
478 
484 template<typename Packet, int LoadMode>
485 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt_ro(const typename unpacket_traits<Packet>::type* from)
486 {
487  return ploadt<Packet, LoadMode>(from);
488 }
489 
491 template<int Offset,typename PacketType>
493 {
494  // by default data are aligned, so there is nothing to be done :)
495  static inline void run(PacketType&, const PacketType&) {}
496 };
497 
513 template<int Offset,typename PacketType>
514 inline void palign(PacketType& first, const PacketType& second)
515 {
517 }
518 
519 /***************************************************************************
520 * Fast complex products (GCC generates a function call which is very slow)
521 ***************************************************************************/
522 
523 // Eigen+CUDA does not support complexes.
524 #ifndef __CUDACC__
525 
526 template<> inline std::complex<float> pmul(const std::complex<float>& a, const std::complex<float>& b)
527 { return std::complex<float>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b)); }
528 
529 template<> inline std::complex<double> pmul(const std::complex<double>& a, const std::complex<double>& b)
530 { return std::complex<double>(real(a)*real(b) - imag(a)*imag(b), imag(a)*real(b) + real(a)*imag(b)); }
531 
532 #endif
533 
534 
535 /***************************************************************************
536  * PacketBlock, that is a collection of N packets where the number of words
537  * in the packet is a multiple of N.
538 ***************************************************************************/
540  Packet packet[N];
541 };
542 
543 template<typename Packet> EIGEN_DEVICE_FUNC inline void
545  // Nothing to do in the scalar case, i.e. a 1x1 matrix.
546 }
547 
548 /***************************************************************************
549  * Selector, i.e. vector of N boolean values used to select (i.e. blend)
550  * words from 2 packets.
551 ***************************************************************************/
552 template <size_t N> struct Selector {
553  bool select[N];
554 };
555 
556 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
557 pblend(const Selector<unpacket_traits<Packet>::size>& ifPacket, const Packet& thenPacket, const Packet& elsePacket) {
558  return ifPacket.select[0] ? thenPacket : elsePacket;
559 }
560 
562 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
564 {
565  // Default implementation based on pblend.
566  // It must be specialized for higher performance.
568  mask.select[0] = true;
569  // This for loop should be optimized away by the compiler.
571  mask.select[i] = false;
572  return pblend(mask, pset1<Packet>(b), a);
573 }
574 
576 template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
578 {
579  // Default implementation based on pblend.
580  // It must be specialized for higher performance.
582  // This for loop should be optimized away by the compiler.
583  for(Index i=0; i<unpacket_traits<Packet>::size-1; ++i)
584  mask.select[i] = false;
585  mask.select[unpacket_traits<Packet>::size-1] = true;
586  return pblend(mask, pset1<Packet>(b), a);
587 }
588 
589 } // end namespace internal
590 
591 } // end namespace Eigen
592 
593 #endif // EIGEN_GENERIC_PACKET_MATH_H
Eigen::conj
const AutoDiffScalar< DerType > & conj(const AutoDiffScalar< DerType > &x)
Definition: AutoDiffScalar.h:543
Eigen::internal::default_packet_traits::HasMul
@ HasMul
Definition: GenericPacketMath.h:49
sqrt
const EIGEN_DEVICE_FUNC SqrtReturnType sqrt() const
Definition: ArrayCwiseUnaryOps.h:152
Eigen::internal::psqrt
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psqrt(const Packet &a)
Definition: GenericPacketMath.h:418
Eigen::internal::unpacket_traits::size
@ size
Definition: XprHelper.h:164
sin
const EIGEN_DEVICE_FUNC SinReturnType sin() const
Definition: ArrayCwiseUnaryOps.h:220
Eigen
Definition: common.h:73
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
#define EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
Definition: Macros.h:530
Eigen::internal::default_packet_traits::HasConj
@ HasConj
Definition: GenericPacketMath.h:56
b
Scalar * b
Definition: cholesky.cpp:56
Eigen::internal::pstoreu
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:289
Eigen::internal::pasin
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pasin(const Packet &a)
Definition: GenericPacketMath.h:378
Eigen::internal::packet_traits::AlignedOnScalar
@ AlignedOnScalar
Definition: GenericPacketMath.h:103
atan
const EIGEN_DEVICE_FUNC AtanReturnType atan() const
Definition: ArrayCwiseUnaryOps.h:248
Eigen::internal::PacketBlock
Definition: GenericPacketMath.h:539
Eigen::internal::type_casting_traits::SrcCoeffRatio
@ SrcCoeffRatio
Definition: GenericPacketMath.h:125
Eigen::internal::pinsertfirst
EIGEN_STRONG_INLINE Packet4cf pinsertfirst(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:427
Eigen::numext::ceil
EIGEN_DEVICE_FUNC T() ceil(const T &x)
Definition: Eigen/src/Core/MathFunctions.h:986
Eigen::internal::default_packet_traits::HasBlend
@ HasBlend
Definition: GenericPacketMath.h:58
Eigen::internal::pceil
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pceil(const Packet &a)
Definition: GenericPacketMath.h:436
Eigen::internal::default_packet_traits::HasTan
@ HasTan
Definition: GenericPacketMath.h:71
Eigen::internal::Selector
Definition: GenericPacketMath.h:552
Eigen::internal::packet_traits::Vectorizable
@ Vectorizable
Definition: GenericPacketMath.h:101
Eigen::internal::packet_traits
Definition: GenericPacketMath.h:96
Eigen::internal::default_packet_traits::HasSetLinear
@ HasSetLinear
Definition: GenericPacketMath.h:57
Eigen::internal::default_packet_traits::HasCos
@ HasCos
Definition: GenericPacketMath.h:70
Eigen::internal::packet_traits::HasMax
@ HasMax
Definition: GenericPacketMath.h:114
Eigen::internal::pround
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pround(const Packet &a)
Definition: GenericPacketMath.h:428
Eigen::internal::preverse
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
Definition: AltiVec/Complex.h:137
Eigen::internal::packet_traits::type
T type
Definition: GenericPacketMath.h:98
Eigen::internal::predux_mul
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_mul(const Packet &a)
Definition: GenericPacketMath.h:336
Eigen::internal::PacketBlock::packet
Packet packet[N]
Definition: GenericPacketMath.h:543
Eigen::internal::Selector::select
bool select[N]
Definition: GenericPacketMath.h:556
Eigen::internal::default_packet_traits::HasBetaInc
@ HasBetaInc
Definition: GenericPacketMath.h:86
Eigen::internal::pdiv
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:175
Eigen::internal::ploadt_ro
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt_ro(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:485
log
const EIGEN_DEVICE_FUNC LogReturnType log() const
Definition: ArrayCwiseUnaryOps.h:105
Eigen::internal::packet_traits::HasMul
@ HasMul
Definition: GenericPacketMath.h:109
Eigen::internal::pconj
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition: AltiVec/Complex.h:101
Scalar
SCALAR Scalar
Definition: common.h:84
Eigen::internal::default_packet_traits::HasErfc
@ HasErfc
Definition: GenericPacketMath.h:83
Eigen::internal::default_packet_traits::HasArg
@ HasArg
Definition: GenericPacketMath.h:52
Eigen::internal::packet_traits::HasAbs
@ HasAbs
Definition: GenericPacketMath.h:111
Eigen::internal::default_packet_traits::HasLog1p
@ HasLog1p
Definition: GenericPacketMath.h:65
asin
const EIGEN_DEVICE_FUNC AsinReturnType asin() const
Definition: ArrayCwiseUnaryOps.h:276
exp
const EIGEN_DEVICE_FUNC ExpReturnType exp() const
Definition: ArrayCwiseUnaryOps.h:88
Eigen::internal::default_packet_traits::HasDiv
@ HasDiv
Definition: GenericPacketMath.h:60
Eigen::internal::default_packet_traits::HasPow
@ HasPow
Definition: GenericPacketMath.h:67
Eigen::internal::default_packet_traits
Definition: GenericPacketMath.h:42
Eigen::internal::default_packet_traits::HasCosh
@ HasCosh
Definition: GenericPacketMath.h:76
Eigen::internal::pcast
EIGEN_DEVICE_FUNC TgtPacket pcast(const SrcPacket &a)
Definition: GenericPacketMath.h:134
log1p
const EIGEN_DEVICE_FUNC Log1pReturnType log1p() const
Definition: ArrayCwiseUnaryOps.h:119
Eigen::internal::pfirst
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type pfirst(const Packet &a)
Definition: GenericPacketMath.h:315
N
static const int N
Definition: TensorIntDiv.h:84
Eigen::internal::default_packet_traits::HasSin
@ HasSin
Definition: GenericPacketMath.h:69
Eigen::internal::default_packet_traits::HasExp
@ HasExp
Definition: GenericPacketMath.h:63
cosh
const EIGEN_DEVICE_FUNC CoshReturnType cosh() const
Definition: ArrayCwiseUnaryOps.h:318
Eigen::internal::pcplxflip
EIGEN_STRONG_INLINE Packet2cf pcplxflip(const Packet2cf &x)
Definition: SSE/Complex.h:242
Eigen::internal::packet_traits::HasConj
@ HasConj
Definition: GenericPacketMath.h:115
Eigen::internal::default_packet_traits::HasLog
@ HasLog
Definition: GenericPacketMath.h:64
Eigen::PacketType
Definition: TensorMeta.h:50
Eigen::internal::predux_downto4
EIGEN_DEVICE_FUNC conditional<(unpacket_traits< Packet >::size%8)==0, typename unpacket_traits< Packet >::half, Packet >::type predux_downto4(const Packet &a)
Definition: GenericPacketMath.h:332
Eigen::internal::preduxp
EIGEN_DEVICE_FUNC Packet preduxp(const Packet *vecs)
Definition: GenericPacketMath.h:320
Eigen::internal::pgather
EIGEN_DEVICE_FUNC Packet pgather(const Scalar *from, Index)
Definition: GenericPacketMath.h:292
abs
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE AbsReturnType abs() const
Definition: ArrayCwiseUnaryOps.h:43
Eigen::internal::default_packet_traits::HasSinh
@ HasSinh
Definition: GenericPacketMath.h:75
Eigen::internal::default_packet_traits::HasHalfPacket
@ HasHalfPacket
Definition: GenericPacketMath.h:45
Eigen::internal::pandnot
EIGEN_DEVICE_FUNC Packet pandnot(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:210
Eigen::internal::pcos
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pcos(const Packet &a)
Definition: GenericPacketMath.h:370
Eigen::internal::unpacket_traits::half
T half
Definition: XprHelper.h:161
Eigen::internal::prsqrt
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet prsqrt(const Packet &a)
Definition: GenericPacketMath.h:422
Eigen::internal::packet_traits::half
T half
Definition: GenericPacketMath.h:99
Eigen::internal::pstore1
void pstore1(typename unpacket_traits< Packet >::type *to, const typename unpacket_traits< Packet >::type &a)
Definition: GenericPacketMath.h:445
Eigen::internal::packet_traits::HasMin
@ HasMin
Definition: GenericPacketMath.h:113
Eigen::internal::pnegate
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
Definition: AltiVec/Complex.h:100
Eigen::internal::ploadt
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:460
Eigen::numext::mini
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T mini(const T &x, const T &y)
Definition: Eigen/src/Core/MathFunctions.h:817
Eigen::internal::unpacket_traits
Definition: XprHelper.h:158
Eigen::internal::ptranspose
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
Definition: AltiVec/Complex.h:242
Eigen::internal::default_packet_traits::HasACos
@ HasACos
Definition: GenericPacketMath.h:73
Eigen::internal::default_packet_traits::HasCeil
@ HasCeil
Definition: GenericPacketMath.h:90
Eigen::internal::default_packet_traits::HasAbs2
@ HasAbs2
Definition: GenericPacketMath.h:53
Eigen::internal::default_packet_traits::HasPolygamma
@ HasPolygamma
Definition: GenericPacketMath.h:81
Eigen::internal::psinh
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psinh(const Packet &a)
Definition: GenericPacketMath.h:390
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:494
Eigen::internal::default_packet_traits::HasRsqrt
@ HasRsqrt
Definition: GenericPacketMath.h:62
Eigen::internal::default_packet_traits::HasATan
@ HasATan
Definition: GenericPacketMath.h:74
Eigen::internal::packet_traits::HasAbs2
@ HasAbs2
Definition: GenericPacketMath.h:112
Eigen::internal::pmax
EIGEN_DEVICE_FUNC Packet pmax(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:185
Eigen::internal::default_packet_traits::HasMin
@ HasMin
Definition: GenericPacketMath.h:54
Eigen::internal::ploadquad
EIGEN_DEVICE_FUNC Packet ploadquad(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:243
Eigen::internal::pblend
EIGEN_STRONG_INLINE Packet4i pblend(const Selector< 4 > &ifPacket, const Packet4i &thenPacket, const Packet4i &elsePacket)
Definition: AltiVec/PacketMath.h:759
Eigen::internal::pscatter
EIGEN_DEVICE_FUNC void pscatter(Scalar *to, const Packet &from, Index)
Definition: GenericPacketMath.h:295
Eigen::internal::default_packet_traits::HasMax
@ HasMax
Definition: GenericPacketMath.h:55
Eigen::internal::default_packet_traits::HasErf
@ HasErf
Definition: GenericPacketMath.h:82
Eigen::internal::type_casting_traits::VectorizedCast
@ VectorizedCast
Definition: GenericPacketMath.h:124
Eigen::internal::default_packet_traits::HasFloor
@ HasFloor
Definition: GenericPacketMath.h:89
Eigen::internal::Packet
Definition: ZVector/PacketMath.h:48
Eigen::internal::psub
EIGEN_DEVICE_FUNC Packet psub(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:156
EIGEN_ALWAYS_INLINE
#define EIGEN_ALWAYS_INLINE
Definition: Macros.h:509
Eigen::internal::default_packet_traits::HasIGamma
@ HasIGamma
Definition: GenericPacketMath.h:84
arg
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE ArgReturnType arg() const
Definition: ArrayCwiseUnaryOps.h:57
Eigen::internal::default_packet_traits::HasTanh
@ HasTanh
Definition: GenericPacketMath.h:77
tan
const EIGEN_DEVICE_FUNC TanReturnType tan() const
Definition: ArrayCwiseUnaryOps.h:234
Eigen::internal::pbroadcast4
EIGEN_DEVICE_FUNC void pbroadcast4(const typename unpacket_traits< Packet >::type *a, Packet &a0, Packet &a1, Packet &a2, Packet &a3)
Definition: GenericPacketMath.h:256
acos
const EIGEN_DEVICE_FUNC AcosReturnType acos() const
Definition: ArrayCwiseUnaryOps.h:262
Eigen::internal::ploaddup
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet ploaddup(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:234
Eigen::internal::pexp
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pexp(const Packet &a)
Definition: GenericPacketMath.h:402
Eigen::internal::palign_impl::run
static void run(PacketType &, const PacketType &)
Definition: GenericPacketMath.h:495
Eigen::internal::pstore
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:285
Eigen::internal::por
EIGEN_DEVICE_FUNC Packet por(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:202
Eigen::internal::default_packet_traits::HasIGammac
@ HasIGammac
Definition: GenericPacketMath.h:85
Eigen::internal::palign
void palign(PacketType &first, const PacketType &second)
Definition: GenericPacketMath.h:514
Eigen::internal::psin
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psin(const Packet &a)
Definition: GenericPacketMath.h:366
Eigen::real
const AutoDiffScalar< DerType > & real(const AutoDiffScalar< DerType > &x)
Definition: AutoDiffScalar.h:545
Eigen::internal::default_packet_traits::HasSqrt
@ HasSqrt
Definition: GenericPacketMath.h:61
Eigen::internal::parg
EIGEN_DEVICE_FUNC Packet parg(const Packet &a)
Definition: GenericPacketMath.h:194
Eigen::internal::default_packet_traits::HasASin
@ HasASin
Definition: GenericPacketMath.h:72
Eigen::internal::prefetch
EIGEN_DEVICE_FUNC void prefetch(const Scalar *addr)
Definition: GenericPacketMath.h:299
Eigen::internal::packet_traits::HasNegate
@ HasNegate
Definition: GenericPacketMath.h:110
Eigen::internal::default_packet_traits::HasLog10
@ HasLog10
Definition: GenericPacketMath.h:66
Eigen::internal::pbroadcast2
EIGEN_DEVICE_FUNC void pbroadcast2(const typename unpacket_traits< Packet >::type *a, Packet &a0, Packet &a1)
Definition: GenericPacketMath.h:273
tanh
const EIGEN_DEVICE_FUNC TanhReturnType tanh() const
Definition: ArrayCwiseUnaryOps.h:290
c
RealScalar c
Definition: level1_cplx_impl.h:103
Eigen::internal::predux
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
Definition: GenericPacketMath.h:323
Eigen::internal::pmul
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:170
Eigen::imag
DerType::Scalar imag(const AutoDiffScalar< DerType > &)
Definition: AutoDiffScalar.h:547
a
Scalar * a
Definition: cholesky.cpp:26
Eigen::internal::type_casting_traits::TgtCoeffRatio
@ TgtCoeffRatio
Definition: GenericPacketMath.h:126
Eigen::internal::type_casting_traits
Definition: GenericPacketMath.h:122
Eigen::internal::pand
EIGEN_DEVICE_FUNC Packet pand(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:198
Eigen::numext::floor
EIGEN_DEVICE_FUNC T() floor(const T &x)
Definition: Eigen/src/Core/MathFunctions.h:970
Eigen::internal::pmadd
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition: AltiVec/PacketMath.h:388
Eigen::internal::plog
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog(const Packet &a)
Definition: GenericPacketMath.h:406
Eigen::internal::packet_traits::HasHalfPacket
@ HasHalfPacket
Definition: GenericPacketMath.h:104
Eigen::internal::default_packet_traits::HasZeta
@ HasZeta
Definition: GenericPacketMath.h:80
Eigen::internal::pabs
EIGEN_STRONG_INLINE Packet4f pabs(const Packet4f &a)
Definition: AltiVec/PacketMath.h:548
Eigen::internal::default_packet_traits::HasDiGamma
@ HasDiGamma
Definition: GenericPacketMath.h:79
Eigen::internal::pload1
EIGEN_DEVICE_FUNC Packet pload1(const typename unpacket_traits< Packet >::type *a)
Definition: GenericPacketMath.h:226
Eigen::internal::pxor
EIGEN_DEVICE_FUNC Packet pxor(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:206
Eigen::internal::padd
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:151
utility::tuple::size
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Definition: TensorSyclTuple.h:143
Eigen::internal::pmin
EIGEN_DEVICE_FUNC Packet pmin(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:180
Eigen::internal::plset
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet plset(const typename unpacket_traits< Packet >::type &a)
Definition: GenericPacketMath.h:282
ceil
const EIGEN_DEVICE_FUNC CeilReturnType ceil() const
Definition: ArrayCwiseUnaryOps.h:402
Eigen::internal::default_packet_traits::HasSub
@ HasSub
Definition: GenericPacketMath.h:48
Eigen::internal::pinsertlast
EIGEN_STRONG_INLINE Packet4cf pinsertlast(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:437
Eigen::internal::ptanh
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet ptanh(const Packet &a)
Definition: GenericPacketMath.h:398
Eigen::internal::plog1p
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog1p(const Packet &a)
Definition: GenericPacketMath.h:410
internal
Definition: BandTriangularSolver.h:13
Eigen::numext::maxi
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T maxi(const T &x, const T &y)
Definition: Eigen/src/Core/MathFunctions.h:825
Eigen::internal::pset1
EIGEN_DEVICE_FUNC Packet pset1(const typename unpacket_traits< Packet >::type &a)
Definition: GenericPacketMath.h:222
Eigen::internal::packet_traits::HasSub
@ HasSub
Definition: GenericPacketMath.h:108
Eigen::internal::default_packet_traits::HasNegate
@ HasNegate
Definition: GenericPacketMath.h:50
Eigen::internal::default_packet_traits::HasAdd
@ HasAdd
Definition: GenericPacketMath.h:47
round
const EIGEN_DEVICE_FUNC RoundReturnType round() const
Definition: ArrayCwiseUnaryOps.h:374
sinh
const EIGEN_DEVICE_FUNC SinhReturnType sinh() const
Definition: ArrayCwiseUnaryOps.h:304
Eigen::internal::default_packet_traits::HasAbs
@ HasAbs
Definition: GenericPacketMath.h:51
Eigen::internal::pstoret
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pstoret(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:471
Eigen::internal::predux_min
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_min(const Packet &a)
Definition: GenericPacketMath.h:340
Eigen::internal::packet_traits::HasAdd
@ HasAdd
Definition: GenericPacketMath.h:107
Eigen::internal::default_packet_traits::HasSign
@ HasSign
Definition: GenericPacketMath.h:92
Eigen::internal::pcosh
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pcosh(const Packet &a)
Definition: GenericPacketMath.h:394
Eigen::internal::patan
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet patan(const Packet &a)
Definition: GenericPacketMath.h:386
Eigen::internal::ploadu
EIGEN_DEVICE_FUNC Packet ploadu(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:218
Eigen::internal::pacos
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pacos(const Packet &a)
Definition: GenericPacketMath.h:382
Eigen::internal::default_packet_traits::HasRound
@ HasRound
Definition: GenericPacketMath.h:88
Eigen::internal::pload
EIGEN_DEVICE_FUNC Packet pload(const typename unpacket_traits< Packet >::type *from)
Definition: GenericPacketMath.h:214
Eigen::internal::palign_impl
Definition: GenericPacketMath.h:492
Eigen::internal::pfloor
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pfloor(const Packet &a)
Definition: GenericPacketMath.h:432
cos
const EIGEN_DEVICE_FUNC CosReturnType cos() const
Definition: ArrayCwiseUnaryOps.h:202
Eigen::internal::ptan
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet ptan(const Packet &a)
Definition: GenericPacketMath.h:374
Eigen::internal::plog10
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog10(const Packet &a)
Definition: GenericPacketMath.h:414
log10
const EIGEN_DEVICE_FUNC Log10ReturnType log10() const
Definition: ArrayCwiseUnaryOps.h:135
floor
const EIGEN_DEVICE_FUNC FloorReturnType floor() const
Definition: ArrayCwiseUnaryOps.h:388
Eigen::internal::packet_traits::HasSetLinear
@ HasSetLinear
Definition: GenericPacketMath.h:116
Eigen::internal::predux_max
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_max(const Packet &a)
Definition: GenericPacketMath.h:344
Eigen::internal::default_packet_traits::HasLGamma
@ HasLGamma
Definition: GenericPacketMath.h:78
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Eigen::internal::packet_traits::size
@ size
Definition: GenericPacketMath.h:102


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:47