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 {
101  Vectorizable = 0,
102  size = 1,
103  AlignedOnScalar = 0,
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 {
124  VectorizedCast = 0,
125  SrcCoeffRatio = 1,
126  TgtCoeffRatio = 1
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
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 
422 Packet prsqrt(const Packet& a) {
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_DEVICE_FUNC void pbroadcast4(const typename unpacket_traits< Packet >::type *a, Packet &a0, Packet &a1, Packet &a2, Packet &a3)
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt(const typename unpacket_traits< Packet >::type *from)
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet ploadt_ro(const typename unpacket_traits< Packet >::type *from)
#define EIGEN_ALWAYS_INLINE
Definition: Macros.h:507
EIGEN_DEVICE_FUNC void pbroadcast2(const typename unpacket_traits< Packet >::type *a, Packet &a0, Packet &a1)
#define EIGEN_STRONG_INLINE
Definition: Macros.h:493
const AutoDiffScalar< DerType > & conj(const AutoDiffScalar< DerType > &x)
void palign(PacketType &first, const PacketType &second)
EIGEN_DEVICE_FUNC Packet por(const Packet &a, const Packet &b)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pasin(const Packet &a)
EIGEN_STRONG_INLINE Packet4cf pinsertfirst(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:459
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_min(const Packet &a)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet patan(const Packet &a)
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_max(const Packet &a)
EIGEN_DEVICE_FUNC const TanhReturnType tanh() const
EIGEN_DEVICE_FUNC const LogReturnType log() const
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
EIGEN_DEVICE_FUNC const CoshReturnType cosh() const
Definition: LDLT.h:16
DerType::Scalar imag(const AutoDiffScalar< DerType > &)
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psqrt(const Packet &a)
EIGEN_DEVICE_FUNC Packet pload1(const typename unpacket_traits< Packet >::type *a)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet ptanh(const Packet &a)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const AbsReturnType abs() const
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
EIGEN_DEVICE_FUNC Packet ploadquad(const typename unpacket_traits< Packet >::type *from)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psinh(const Packet &a)
EIGEN_DEVICE_FUNC void pscatter(Scalar *to, const Packet &from, Index)
EIGEN_STRONG_INLINE Packet2cf pcplxflip(const Packet2cf &x)
Definition: SSE/Complex.h:258
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet plset(const typename unpacket_traits< Packet >::type &a)
EIGEN_DEVICE_FUNC Packet preduxp(const Packet *vecs)
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
EIGEN_DEVICE_FUNC Packet pmin(const Packet &a, const Packet &b)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pexp(const Packet &a)
EIGEN_DEVICE_FUNC const RoundReturnType round() const
EIGEN_DEVICE_FUNC const CosReturnType cos() const
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pceil(const Packet &a)
EIGEN_DEVICE_FUNC const CeilReturnType ceil() const
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet ptan(const Packet &a)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog1p(const Packet &a)
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
EIGEN_DEVICE_FUNC const Log1pReturnType log1p() const
EIGEN_DEVICE_FUNC const SinhReturnType sinh() const
EIGEN_DEVICE_FUNC Packet parg(const Packet &a)
EIGEN_DEVICE_FUNC Packet ploadu(const typename unpacket_traits< Packet >::type *from)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pacos(const Packet &a)
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
void pstore1(typename unpacket_traits< Packet >::type *to, const typename unpacket_traits< Packet >::type &a)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
EIGEN_DEVICE_FUNC const AtanReturnType atan() const
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type pfirst(const Packet &a)
EIGEN_DEVICE_FUNC const TanReturnType tan() const
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
#define EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS
Definition: Macros.h:528
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet ploaddup(const typename unpacket_traits< Packet >::type *from)
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet prsqrt(const Packet &a)
EIGEN_DEVICE_FUNC const AcosReturnType acos() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
EIGEN_DEVICE_FUNC TgtPacket pcast(const SrcPacket &a)
EIGEN_DEVICE_FUNC const FloorReturnType floor() const
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog10(const Packet &a)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pfloor(const Packet &a)
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_mul(const Packet &a)
EIGEN_DEVICE_FUNC Packet pandnot(const Packet &a, const Packet &b)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog(const Packet &a)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pround(const Packet &a)
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
EIGEN_DEVICE_FUNC Packet psub(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet4cf pinsertlast(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:469
EIGEN_DEVICE_FUNC const Log10ReturnType log10() const
EIGEN_DEVICE_FUNC Packet pxor(const Packet &a, const Packet &b)
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pcos(const Packet &a)
EIGEN_DEVICE_FUNC const SinReturnType sin() const
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psin(const Packet &a)
EIGEN_DEVICE_FUNC void prefetch(const Scalar *addr)
static const int N
Definition: TensorIntDiv.h:84
EIGEN_DEVICE_FUNC Packet pset1(const typename unpacket_traits< Packet >::type &a)
static void run(PacketType &, const PacketType &)
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pstoret(Scalar *to, const Packet &from)
const AutoDiffScalar< DerType > & real(const AutoDiffScalar< DerType > &x)
EIGEN_DEVICE_FUNC const Scalar & b
EIGEN_DECLARE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pcosh(const Packet &a)
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
EIGEN_DEVICE_FUNC const AsinReturnType asin() const
EIGEN_DEVICE_FUNC Packet pmax(const Packet &a, const Packet &b)
EIGEN_DEVICE_FUNC conditional<(unpacket_traits< Packet >::size%8)==0, typename unpacket_traits< Packet >::half, Packet >::type predux_downto4(const Packet &a)
EIGEN_STRONG_INLINE Packet4i pblend(const Selector< 4 > &ifPacket, const Packet4i &thenPacket, const Packet4i &elsePacket)
EIGEN_DEVICE_FUNC Packet pgather(const Scalar *from, Index)
EIGEN_DEVICE_FUNC Packet pand(const Packet &a, const Packet &b)
EIGEN_DEVICE_FUNC Packet pload(const typename unpacket_traits< Packet >::type *from)
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet4f pabs(const Packet4f &a)


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:08:13