NEON/Complex.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) 2010 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2010 Konstantinos Margaritis <markos@freevec.org>
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_COMPLEX_NEON_H
12 #define EIGEN_COMPLEX_NEON_H
13 
14 namespace Eigen {
15 
16 namespace internal {
17 
18 inline uint32x4_t p4ui_CONJ_XOR() {
19 // See bug 1325, clang fails to call vld1q_u64.
20 #if EIGEN_COMP_CLANG
21  uint32x4_t ret = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
22  return ret;
23 #else
24  static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
25  return vld1q_u32( conj_XOR_DATA );
26 #endif
27 }
28 
29 inline uint32x2_t p2ui_CONJ_XOR() {
30  static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000 };
31  return vld1_u32( conj_XOR_DATA );
32 }
33 
34 //---------- float ----------
35 struct Packet2cf
36 {
38  EIGEN_STRONG_INLINE explicit Packet2cf(const Packet4f& a) : v(a) {}
39  Packet4f v;
40 };
41 
42 template<> struct packet_traits<std::complex<float> > : default_packet_traits
43 {
44  typedef Packet2cf type;
45  typedef Packet2cf half;
46  enum {
47  Vectorizable = 1,
48  AlignedOnScalar = 1,
49  size = 2,
50  HasHalfPacket = 0,
51 
52  HasAdd = 1,
53  HasSub = 1,
54  HasMul = 1,
55  HasDiv = 1,
56  HasNegate = 1,
57  HasAbs = 0,
58  HasAbs2 = 0,
59  HasMin = 0,
60  HasMax = 0,
61  HasSetLinear = 0
62  };
63 };
64 
65 template<> struct unpacket_traits<Packet2cf> { typedef std::complex<float> type; enum {size=2, alignment=Aligned16}; typedef Packet2cf half; };
66 
67 template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<float>& from)
68 {
69  float32x2_t r64;
70  r64 = vld1_f32((const float *)&from);
71 
72  return Packet2cf(vcombine_f32(r64, r64));
73 }
74 
75 template<> EIGEN_STRONG_INLINE Packet2cf padd<Packet2cf>(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(padd<Packet4f>(a.v,b.v)); }
76 template<> EIGEN_STRONG_INLINE Packet2cf psub<Packet2cf>(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(psub<Packet4f>(a.v,b.v)); }
77 template<> EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf& a) { return Packet2cf(pnegate<Packet4f>(a.v)); }
78 template<> EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf& a)
79 {
80  Packet4ui b = vreinterpretq_u32_f32(a.v);
81  return Packet2cf(vreinterpretq_f32_u32(veorq_u32(b, p4ui_CONJ_XOR())));
82 }
83 
85 {
86  Packet4f v1, v2;
87 
88  // Get the real values of a | a1_re | a1_re | a2_re | a2_re |
89  v1 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 0), vdup_lane_f32(vget_high_f32(a.v), 0));
90  // Get the imag values of a | a1_im | a1_im | a2_im | a2_im |
91  v2 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 1), vdup_lane_f32(vget_high_f32(a.v), 1));
92  // Multiply the real a with b
93  v1 = vmulq_f32(v1, b.v);
94  // Multiply the imag a with b
95  v2 = vmulq_f32(v2, b.v);
96  // Conjugate v2
97  v2 = vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(v2), p4ui_CONJ_XOR()));
98  // Swap real/imag elements in v2.
99  v2 = vrev64q_f32(v2);
100  // Add and return the result
101  return Packet2cf(vaddq_f32(v1, v2));
102 }
103 
105 {
106  return Packet2cf(vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(a.v),vreinterpretq_u32_f32(b.v))));
107 }
109 {
110  return Packet2cf(vreinterpretq_f32_u32(vorrq_u32(vreinterpretq_u32_f32(a.v),vreinterpretq_u32_f32(b.v))));
111 }
113 {
114  return Packet2cf(vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(a.v),vreinterpretq_u32_f32(b.v))));
115 }
117 {
118  return Packet2cf(vreinterpretq_f32_u32(vbicq_u32(vreinterpretq_u32_f32(a.v),vreinterpretq_u32_f32(b.v))));
119 }
120 
121 template<> EIGEN_STRONG_INLINE Packet2cf pload<Packet2cf>(const std::complex<float>* from) { EIGEN_DEBUG_ALIGNED_LOAD return Packet2cf(pload<Packet4f>((const float*)from)); }
122 template<> EIGEN_STRONG_INLINE Packet2cf ploadu<Packet2cf>(const std::complex<float>* from) { EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cf(ploadu<Packet4f>((const float*)from)); }
123 
124 template<> EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(const std::complex<float>* from) { return pset1<Packet2cf>(*from); }
125 
126 template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float> * to, const Packet2cf& from) { EIGEN_DEBUG_ALIGNED_STORE pstore((float*)to, from.v); }
127 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float> * to, const Packet2cf& from) { EIGEN_DEBUG_UNALIGNED_STORE pstoreu((float*)to, from.v); }
128 
129 template<> EIGEN_DEVICE_FUNC inline Packet2cf pgather<std::complex<float>, Packet2cf>(const std::complex<float>* from, Index stride)
130 {
132  res = vsetq_lane_f32(std::real(from[0*stride]), res, 0);
133  res = vsetq_lane_f32(std::imag(from[0*stride]), res, 1);
134  res = vsetq_lane_f32(std::real(from[1*stride]), res, 2);
135  res = vsetq_lane_f32(std::imag(from[1*stride]), res, 3);
136  return Packet2cf(res);
137 }
138 
139 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet2cf>(std::complex<float>* to, const Packet2cf& from, Index stride)
140 {
141  to[stride*0] = std::complex<float>(vgetq_lane_f32(from.v, 0), vgetq_lane_f32(from.v, 1));
142  to[stride*1] = std::complex<float>(vgetq_lane_f32(from.v, 2), vgetq_lane_f32(from.v, 3));
143 }
144 
145 template<> EIGEN_STRONG_INLINE void prefetch<std::complex<float> >(const std::complex<float> * addr) { EIGEN_ARM_PREFETCH((const float *)addr); }
146 
147 template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(const Packet2cf& a)
148 {
149  std::complex<float> EIGEN_ALIGN16 x[2];
150  vst1q_f32((float *)x, a.v);
151  return x[0];
152 }
153 
154 template<> EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf& a)
155 {
156  float32x2_t a_lo, a_hi;
157  Packet4f a_r128;
158 
159  a_lo = vget_low_f32(a.v);
160  a_hi = vget_high_f32(a.v);
161  a_r128 = vcombine_f32(a_hi, a_lo);
162 
163  return Packet2cf(a_r128);
164 }
165 
167 {
168  return Packet2cf(vrev64q_f32(a.v));
169 }
170 
171 template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet2cf>(const Packet2cf& a)
172 {
173  float32x2_t a1, a2;
174  std::complex<float> s;
175 
176  a1 = vget_low_f32(a.v);
177  a2 = vget_high_f32(a.v);
178  a2 = vadd_f32(a1, a2);
179  vst1_f32((float *)&s, a2);
180 
181  return s;
182 }
183 
185 {
186  Packet4f sum1, sum2, sum;
187 
188  // Add the first two 64-bit float32x2_t of vecs[0]
189  sum1 = vcombine_f32(vget_low_f32(vecs[0].v), vget_low_f32(vecs[1].v));
190  sum2 = vcombine_f32(vget_high_f32(vecs[0].v), vget_high_f32(vecs[1].v));
191  sum = vaddq_f32(sum1, sum2);
192 
193  return Packet2cf(sum);
194 }
195 
196 template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet2cf>(const Packet2cf& a)
197 {
198  float32x2_t a1, a2, v1, v2, prod;
199  std::complex<float> s;
200 
201  a1 = vget_low_f32(a.v);
202  a2 = vget_high_f32(a.v);
203  // Get the real values of a | a1_re | a1_re | a2_re | a2_re |
204  v1 = vdup_lane_f32(a1, 0);
205  // Get the real values of a | a1_im | a1_im | a2_im | a2_im |
206  v2 = vdup_lane_f32(a1, 1);
207  // Multiply the real a with b
208  v1 = vmul_f32(v1, a2);
209  // Multiply the imag a with b
210  v2 = vmul_f32(v2, a2);
211  // Conjugate v2
212  v2 = vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(v2), p2ui_CONJ_XOR()));
213  // Swap real/imag elements in v2.
214  v2 = vrev64_f32(v2);
215  // Add v1, v2
216  prod = vadd_f32(v1, v2);
217 
218  vst1_f32((float *)&s, prod);
219 
220  return s;
221 }
222 
223 template<int Offset>
224 struct palign_impl<Offset,Packet2cf>
225 {
226  EIGEN_STRONG_INLINE static void run(Packet2cf& first, const Packet2cf& second)
227  {
228  if (Offset==1)
229  {
230  first.v = vextq_f32(first.v, second.v, 2);
231  }
232  }
233 };
234 
235 template<> struct conj_helper<Packet2cf, Packet2cf, false,true>
236 {
237  EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf& x, const Packet2cf& y, const Packet2cf& c) const
238  { return padd(pmul(x,y),c); }
239 
240  EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf& a, const Packet2cf& b) const
241  {
242  return internal::pmul(a, pconj(b));
243  }
244 };
245 
246 template<> struct conj_helper<Packet2cf, Packet2cf, true,false>
247 {
248  EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf& x, const Packet2cf& y, const Packet2cf& c) const
249  { return padd(pmul(x,y),c); }
250 
251  EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf& a, const Packet2cf& b) const
252  {
253  return internal::pmul(pconj(a), b);
254  }
255 };
256 
257 template<> struct conj_helper<Packet2cf, Packet2cf, true,true>
258 {
259  EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf& x, const Packet2cf& y, const Packet2cf& c) const
260  { return padd(pmul(x,y),c); }
261 
262  EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf& a, const Packet2cf& b) const
263  {
264  return pconj(internal::pmul(a, b));
265  }
266 };
267 
269 
270 template<> EIGEN_STRONG_INLINE Packet2cf pdiv<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
271 {
272  // TODO optimize it for NEON
274  Packet4f s, rev_s;
275 
276  // this computes the norm
277  s = vmulq_f32(b.v, b.v);
278  rev_s = vrev64q_f32(s);
279 
280  return Packet2cf(pdiv<Packet4f>(res.v, vaddq_f32(s,rev_s)));
281 }
282 
283 EIGEN_DEVICE_FUNC inline void
285  Packet4f tmp = vcombine_f32(vget_high_f32(kernel.packet[0].v), vget_high_f32(kernel.packet[1].v));
286  kernel.packet[0].v = vcombine_f32(vget_low_f32(kernel.packet[0].v), vget_low_f32(kernel.packet[1].v));
287  kernel.packet[1].v = tmp;
288 }
289 
290 //---------- double ----------
291 #if EIGEN_ARCH_ARM64 && !EIGEN_APPLE_DOUBLE_NEON_BUG
292 
293 // See bug 1325, clang fails to call vld1q_u64.
294 #if EIGEN_COMP_CLANG
295  static uint64x2_t p2ul_CONJ_XOR = {0x0, 0x8000000000000000};
296 #else
297  const uint64_t p2ul_conj_XOR_DATA[] = { 0x0, 0x8000000000000000 };
298  static uint64x2_t p2ul_CONJ_XOR = vld1q_u64( p2ul_conj_XOR_DATA );
299 #endif
300 
301 struct Packet1cd
302 {
304  EIGEN_STRONG_INLINE explicit Packet1cd(const Packet2d& a) : v(a) {}
305  Packet2d v;
306 };
307 
308 template<> struct packet_traits<std::complex<double> > : default_packet_traits
309 {
310  typedef Packet1cd type;
311  typedef Packet1cd half;
312  enum {
313  Vectorizable = 1,
314  AlignedOnScalar = 0,
315  size = 1,
316  HasHalfPacket = 0,
317 
318  HasAdd = 1,
319  HasSub = 1,
320  HasMul = 1,
321  HasDiv = 1,
322  HasNegate = 1,
323  HasAbs = 0,
324  HasAbs2 = 0,
325  HasMin = 0,
326  HasMax = 0,
327  HasSetLinear = 0
328  };
329 };
330 
331 template<> struct unpacket_traits<Packet1cd> { typedef std::complex<double> type; enum {size=1, alignment=Aligned16}; typedef Packet1cd half; };
332 
333 template<> EIGEN_STRONG_INLINE Packet1cd pload<Packet1cd>(const std::complex<double>* from) { EIGEN_DEBUG_ALIGNED_LOAD return Packet1cd(pload<Packet2d>((const double*)from)); }
334 template<> EIGEN_STRONG_INLINE Packet1cd ploadu<Packet1cd>(const std::complex<double>* from) { EIGEN_DEBUG_UNALIGNED_LOAD return Packet1cd(ploadu<Packet2d>((const double*)from)); }
335 
336 template<> EIGEN_STRONG_INLINE Packet1cd pset1<Packet1cd>(const std::complex<double>& from)
337 { /* here we really have to use unaligned loads :( */ return ploadu<Packet1cd>(&from); }
338 
339 template<> EIGEN_STRONG_INLINE Packet1cd padd<Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(padd<Packet2d>(a.v,b.v)); }
340 template<> EIGEN_STRONG_INLINE Packet1cd psub<Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(psub<Packet2d>(a.v,b.v)); }
341 template<> EIGEN_STRONG_INLINE Packet1cd pnegate(const Packet1cd& a) { return Packet1cd(pnegate<Packet2d>(a.v)); }
342 template<> EIGEN_STRONG_INLINE Packet1cd pconj(const Packet1cd& a) { return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v), p2ul_CONJ_XOR))); }
343 
344 template<> EIGEN_STRONG_INLINE Packet1cd pmul<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
345 {
346  Packet2d v1, v2;
347 
348  // Get the real values of a
349  v1 = vdupq_lane_f64(vget_low_f64(a.v), 0);
350  // Get the imag values of a
351  v2 = vdupq_lane_f64(vget_high_f64(a.v), 0);
352  // Multiply the real a with b
353  v1 = vmulq_f64(v1, b.v);
354  // Multiply the imag a with b
355  v2 = vmulq_f64(v2, b.v);
356  // Conjugate v2
357  v2 = vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(v2), p2ul_CONJ_XOR));
358  // Swap real/imag elements in v2.
359  v2 = preverse<Packet2d>(v2);
360  // Add and return the result
361  return Packet1cd(vaddq_f64(v1, v2));
362 }
363 
364 template<> EIGEN_STRONG_INLINE Packet1cd pand <Packet1cd>(const Packet1cd& a, const Packet1cd& b)
365 {
366  return Packet1cd(vreinterpretq_f64_u64(vandq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v))));
367 }
368 template<> EIGEN_STRONG_INLINE Packet1cd por <Packet1cd>(const Packet1cd& a, const Packet1cd& b)
369 {
370  return Packet1cd(vreinterpretq_f64_u64(vorrq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v))));
371 }
372 template<> EIGEN_STRONG_INLINE Packet1cd pxor <Packet1cd>(const Packet1cd& a, const Packet1cd& b)
373 {
374  return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v))));
375 }
376 template<> EIGEN_STRONG_INLINE Packet1cd pandnot<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
377 {
378  return Packet1cd(vreinterpretq_f64_u64(vbicq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v))));
379 }
380 
381 template<> EIGEN_STRONG_INLINE Packet1cd ploaddup<Packet1cd>(const std::complex<double>* from) { return pset1<Packet1cd>(*from); }
382 
383 template<> EIGEN_STRONG_INLINE void pstore <std::complex<double> >(std::complex<double> * to, const Packet1cd& from) { EIGEN_DEBUG_ALIGNED_STORE pstore((double*)to, from.v); }
384 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<double> * to, const Packet1cd& from) { EIGEN_DEBUG_UNALIGNED_STORE pstoreu((double*)to, from.v); }
385 
386 template<> EIGEN_STRONG_INLINE void prefetch<std::complex<double> >(const std::complex<double> * addr) { EIGEN_ARM_PREFETCH((const double *)addr); }
387 
388 template<> EIGEN_DEVICE_FUNC inline Packet1cd pgather<std::complex<double>, Packet1cd>(const std::complex<double>* from, Index stride)
389 {
391  res = vsetq_lane_f64(std::real(from[0*stride]), res, 0);
392  res = vsetq_lane_f64(std::imag(from[0*stride]), res, 1);
393  return Packet1cd(res);
394 }
395 
396 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet1cd>(std::complex<double>* to, const Packet1cd& from, Index stride)
397 {
398  to[stride*0] = std::complex<double>(vgetq_lane_f64(from.v, 0), vgetq_lane_f64(from.v, 1));
399 }
400 
401 
402 template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet1cd>(const Packet1cd& a)
403 {
404  std::complex<double> EIGEN_ALIGN16 res;
405  pstore<std::complex<double> >(&res, a);
406 
407  return res;
408 }
409 
410 template<> EIGEN_STRONG_INLINE Packet1cd preverse(const Packet1cd& a) { return a; }
411 
412 template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
413 
414 template<> EIGEN_STRONG_INLINE Packet1cd preduxp<Packet1cd>(const Packet1cd* vecs) { return vecs[0]; }
415 
416 template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
417 
418 template<int Offset>
419 struct palign_impl<Offset,Packet1cd>
420 {
421  static EIGEN_STRONG_INLINE void run(Packet1cd& /*first*/, const Packet1cd& /*second*/)
422  {
423  // FIXME is it sure we never have to align a Packet1cd?
424  // Even though a std::complex<double> has 16 bytes, it is not necessarily aligned on a 16 bytes boundary...
425  }
426 };
427 
428 template<> struct conj_helper<Packet1cd, Packet1cd, false,true>
429 {
430  EIGEN_STRONG_INLINE Packet1cd pmadd(const Packet1cd& x, const Packet1cd& y, const Packet1cd& c) const
431  { return padd(pmul(x,y),c); }
432 
433  EIGEN_STRONG_INLINE Packet1cd pmul(const Packet1cd& a, const Packet1cd& b) const
434  {
435  return internal::pmul(a, pconj(b));
436  }
437 };
438 
439 template<> struct conj_helper<Packet1cd, Packet1cd, true,false>
440 {
441  EIGEN_STRONG_INLINE Packet1cd pmadd(const Packet1cd& x, const Packet1cd& y, const Packet1cd& c) const
442  { return padd(pmul(x,y),c); }
443 
444  EIGEN_STRONG_INLINE Packet1cd pmul(const Packet1cd& a, const Packet1cd& b) const
445  {
446  return internal::pmul(pconj(a), b);
447  }
448 };
449 
450 template<> struct conj_helper<Packet1cd, Packet1cd, true,true>
451 {
452  EIGEN_STRONG_INLINE Packet1cd pmadd(const Packet1cd& x, const Packet1cd& y, const Packet1cd& c) const
453  { return padd(pmul(x,y),c); }
454 
455  EIGEN_STRONG_INLINE Packet1cd pmul(const Packet1cd& a, const Packet1cd& b) const
456  {
457  return pconj(internal::pmul(a, b));
458  }
459 };
460 
462 
463 template<> EIGEN_STRONG_INLINE Packet1cd pdiv<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
464 {
465  // TODO optimize it for NEON
467  Packet2d s = pmul<Packet2d>(b.v, b.v);
468  Packet2d rev_s = preverse<Packet2d>(s);
469 
470  return Packet1cd(pdiv(res.v, padd<Packet2d>(s,rev_s)));
471 }
472 
473 EIGEN_STRONG_INLINE Packet1cd pcplxflip/*<Packet1cd>*/(const Packet1cd& x)
474 {
475  return Packet1cd(preverse(Packet2d(x.v)));
476 }
477 
479 {
480  Packet2d tmp = vcombine_f64(vget_high_f64(kernel.packet[0].v), vget_high_f64(kernel.packet[1].v));
481  kernel.packet[0].v = vcombine_f64(vget_low_f64(kernel.packet[0].v), vget_low_f64(kernel.packet[1].v));
482  kernel.packet[1].v = tmp;
483 }
484 #endif // EIGEN_ARCH_ARM64
485 
486 } // end namespace internal
487 
488 } // end namespace Eigen
489 
490 #endif // EIGEN_COMPLEX_NEON_H
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
Definition: NEON/Complex.h:262
EIGEN_STRONG_INLINE Packet1cd ploaddup< Packet1cd >(const std::complex< double > *from)
Definition: SSE/Complex.h:321
#define EIGEN_STRONG_INLINE
Definition: Macros.h:494
float real
Definition: datatypes.h:10
Vector v2
Scalar * b
Definition: benchVecAdd.cpp:17
EIGEN_STRONG_INLINE Packet2cf por< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Vector v1
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL)
Definition: ConjHelper.h:14
EIGEN_STRONG_INLINE Packet2cf preduxp< Packet2cf >(const Packet2cf *vecs)
EIGEN_STRONG_INLINE Packet1cd padd< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:285
EIGEN_STRONG_INLINE Packet1cd preduxp< Packet1cd >(const Packet1cd *vecs)
Definition: SSE/Complex.h:343
#define EIGEN_DEBUG_UNALIGNED_LOAD
EIGEN_STRONG_INLINE Packet2cf pmul< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
EIGEN_STRONG_INLINE Packet1cd pand< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:308
EIGEN_STRONG_INLINE Packet2cf ploadu< Packet2cf >(const std::complex< float > *from)
#define EIGEN_DEBUG_ALIGNED_STORE
__vector unsigned int Packet4ui
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
Definition: NEON/Complex.h:237
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
Definition: NEON/Complex.h:248
EIGEN_STRONG_INLINE Packet1cd pdiv< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:419
EIGEN_STRONG_INLINE Packet2cf pload< Packet2cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE Packet2cf pset1< Packet2cf >(const std::complex< float > &from)
EIGEN_STRONG_INLINE Packet1cd pxor< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:310
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet2cf >(const Packet2cf &a)
#define EIGEN_DEBUG_UNALIGNED_STORE
EIGEN_STRONG_INLINE Packet1cd pset1< Packet1cd >(const std::complex< double > &from)
Definition: SSE/Complex.h:318
#define EIGEN_DEBUG_ALIGNED_LOAD
EIGEN_STRONG_INLINE Packet2cf pcplxflip(const Packet2cf &x)
Definition: SSE/Complex.h:242
EIGEN_STRONG_INLINE Packet2cf psub< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Array33i a
EIGEN_STRONG_INLINE Packet2d padd< Packet2d >(const Packet2d &a, const Packet2d &b)
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
Definition: NEON/Complex.h:251
EIGEN_STRONG_INLINE Packet2cf(const Packet4f &a)
Definition: NEON/Complex.h:38
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
Definition: NEON/Complex.h:259
EIGEN_STRONG_INLINE std::complex< double > predux< Packet1cd >(const Packet1cd &a)
Definition: SSE/Complex.h:338
EIGEN_STRONG_INLINE Packet4f pdiv< Packet4f >(const Packet4f &a, const Packet4f &b)
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
constexpr int first(int i)
Implementation details for constexpr functions.
EIGEN_STRONG_INLINE Packet4f ploadu< Packet4f >(const float *from)
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
EIGEN_STRONG_INLINE Packet2cf pand< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf()
Definition: NEON/Complex.h:37
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
unsigned __int64 uint64_t
Definition: ms_stdint.h:95
unsigned int uint32_t
Definition: ms_stdint.h:85
EIGEN_STRONG_INLINE Packet1cd pandnot< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:311
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type pfirst(const Packet &a)
EIGEN_STRONG_INLINE Packet1cd pload< Packet1cd >(const std::complex< double > *from)
Definition: SSE/Complex.h:314
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())
Definition: mpreal.h:2381
RealScalar s
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet2cf >(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
Definition: NEON/Complex.h:240
EIGEN_STRONG_INLINE Packet2d ploadu< Packet2d >(const double *from)
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2d pload< Packet2d >(const double *from)
EIGEN_STRONG_INLINE Packet2d psub< Packet2d >(const Packet2d &a, const Packet2d &b)
EIGEN_STRONG_INLINE std::complex< float > predux< Packet2cf >(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2cf ploaddup< Packet2cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet1cd >(const Packet1cd &a)
Definition: SSE/Complex.h:348
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
EIGEN_STRONG_INLINE Packet4f pload< Packet4f >(const float *from)
uint32x2_t p2ui_CONJ_XOR()
Definition: NEON/Complex.h:29
#define EIGEN_ALIGN16
Definition: Macros.h:753
EIGEN_STRONG_INLINE Packet1cd psub< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:286
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
DenseIndex ret
Definition: level1_impl.h:59
static EIGEN_STRONG_INLINE void run(Packet2cf &first, const Packet2cf &second)
Definition: NEON/Complex.h:226
EIGEN_STRONG_INLINE Packet4f padd< Packet4f >(const Packet4f &a, const Packet4f &b)
EIGEN_STRONG_INLINE Packet1cd pmul< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:294
#define EIGEN_ARM_PREFETCH(ADDR)
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
static Packet4ui p4ui_CONJ_XOR
EIGEN_STRONG_INLINE Packet1cd ploadu< Packet1cd >(const std::complex< double > *from)
Definition: SSE/Complex.h:316
EIGEN_STRONG_INLINE Packet2d pset1< Packet2d >(const double &from)
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
EIGEN_STRONG_INLINE Packet1cd por< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: SSE/Complex.h:309
EIGEN_STRONG_INLINE Packet2cf pxor< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2d pmul< Packet2d >(const Packet2d &a, const Packet2d &b)
EIGEN_STRONG_INLINE Packet2cf padd< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
void run(Expr &expr, Dev &dev)
Definition: TensorSyclRun.h:33
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_STRONG_INLINE Packet4f pset1< Packet4f >(const float &from)
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet4f psub< Packet4f >(const Packet4f &a, const Packet4f &b)
EIGEN_STRONG_INLINE Packet2cf pandnot< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet1cd >(const Packet1cd &a)
Definition: SSE/Complex.h:329
EIGEN_STRONG_INLINE Packet2cf pdiv< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf pcplxflip< Packet2cf >(const Packet2cf &x)
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
const Product< Lhs, Rhs > prod(const Lhs &lhs, const Rhs &rhs)
Definition: evaluators.cpp:8


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:41:49