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 {
20 // See bug 1325, clang fails to call vld1q_u64.
21 #if EIGEN_COMP_CLANG || EIGEN_COMP_CASTXML
22  uint32x4_t ret = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
23  return ret;
24 #else
25  static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
26  return vld1q_u32( conj_XOR_DATA );
27 #endif
28 }
29 
30 inline uint32x2_t p2ui_CONJ_XOR()
31 {
32  static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000 };
33  return vld1_u32( conj_XOR_DATA );
34 }
35 
36 //---------- float ----------
37 
38 struct Packet1cf
39 {
41  EIGEN_STRONG_INLINE explicit Packet1cf(const Packet2f& a) : v(a) {}
43 };
44 struct Packet2cf
45 {
47  EIGEN_STRONG_INLINE explicit Packet2cf(const Packet4f& a) : v(a) {}
48  Packet4f v;
49 };
50 
51 template<> struct packet_traits<std::complex<float> > : default_packet_traits
52 {
53  typedef Packet2cf type;
54  typedef Packet1cf half;
55  enum
56  {
57  Vectorizable = 1,
58  AlignedOnScalar = 1,
59  size = 2,
60  HasHalfPacket = 1,
61 
62  HasAdd = 1,
63  HasSub = 1,
64  HasMul = 1,
65  HasDiv = 1,
66  HasNegate = 1,
67  HasAbs = 0,
68  HasAbs2 = 0,
69  HasMin = 0,
70  HasMax = 0,
71  HasSetLinear = 0
72  };
73 };
74 
75 template<> struct unpacket_traits<Packet1cf>
76 {
77  typedef std::complex<float> type;
78  typedef Packet1cf half;
79  typedef Packet2f as_real;
80  enum
81  {
82  size = 1,
84  vectorizable = true,
87  };
88 };
89 template<> struct unpacket_traits<Packet2cf>
90 {
91  typedef std::complex<float> type;
92  typedef Packet1cf half;
93  typedef Packet4f as_real;
94  enum
95  {
96  size = 2,
98  vectorizable = true,
99  masked_load_available = false,
100  masked_store_available = false
101  };
102 };
103 
105 { return Packet1cf(vset_lane_f32(a, vdup_n_f32(0.f), 0)); }
107 { return Packet2cf(vreinterpretq_f32_u64(vmovl_u32(vreinterpret_u32_f32(a)))); }
108 
109 template<> EIGEN_STRONG_INLINE Packet1cf pset1<Packet1cf>(const std::complex<float>& from)
110 { return Packet1cf(vld1_f32(reinterpret_cast<const float*>(&from))); }
111 template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<float>& from)
112 {
113  const float32x2_t r64 = vld1_f32(reinterpret_cast<const float*>(&from));
114  return Packet2cf(vcombine_f32(r64, r64));
115 }
116 
118 { return Packet1cf(padd<Packet2f>(a.v, b.v)); }
119 template<> EIGEN_STRONG_INLINE Packet2cf padd<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
120 { return Packet2cf(padd<Packet4f>(a.v, b.v)); }
121 
123 { return Packet1cf(psub<Packet2f>(a.v, b.v)); }
124 template<> EIGEN_STRONG_INLINE Packet2cf psub<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
125 { return Packet2cf(psub<Packet4f>(a.v, b.v)); }
126 
127 template<> EIGEN_STRONG_INLINE Packet1cf pnegate(const Packet1cf& a) { return Packet1cf(pnegate<Packet2f>(a.v)); }
128 template<> EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf& a) { return Packet2cf(pnegate<Packet4f>(a.v)); }
129 
131 {
132  const Packet2ui b = vreinterpret_u32_f32(a.v);
133  return Packet1cf(vreinterpret_f32_u32(veor_u32(b, p2ui_CONJ_XOR())));
134 }
135 template<> EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf& a)
136 {
137  const Packet4ui b = vreinterpretq_u32_f32(a.v);
138  return Packet2cf(vreinterpretq_f32_u32(veorq_u32(b, p4ui_CONJ_XOR())));
139 }
140 
142 {
143  Packet2f v1, v2;
144 
145  // Get the real values of a | a1_re | a1_re |
146  v1 = vdup_lane_f32(a.v, 0);
147  // Get the imag values of a | a1_im | a1_im |
148  v2 = vdup_lane_f32(a.v, 1);
149  // Multiply the real a with b
150  v1 = vmul_f32(v1, b.v);
151  // Multiply the imag a with b
152  v2 = vmul_f32(v2, b.v);
153  // Conjugate v2
154  v2 = vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(v2), p2ui_CONJ_XOR()));
155  // Swap real/imag elements in v2.
156  v2 = vrev64_f32(v2);
157  // Add and return the result
158  return Packet1cf(vadd_f32(v1, v2));
159 }
160 template<> EIGEN_STRONG_INLINE Packet2cf pmul<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
161 {
162  Packet4f v1, v2;
163 
164  // Get the real values of a | a1_re | a1_re | a2_re | a2_re |
165  v1 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 0), vdup_lane_f32(vget_high_f32(a.v), 0));
166  // Get the imag values of a | a1_im | a1_im | a2_im | a2_im |
167  v2 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 1), vdup_lane_f32(vget_high_f32(a.v), 1));
168  // Multiply the real a with b
169  v1 = vmulq_f32(v1, b.v);
170  // Multiply the imag a with b
171  v2 = vmulq_f32(v2, b.v);
172  // Conjugate v2
173  v2 = vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(v2), p4ui_CONJ_XOR()));
174  // Swap real/imag elements in v2.
175  v2 = vrev64q_f32(v2);
176  // Add and return the result
177  return Packet2cf(vaddq_f32(v1, v2));
178 }
179 
181 {
182  // Compare real and imaginary parts of a and b to get the mask vector:
183  // [re(a[0])==re(b[0]), im(a[0])==im(b[0])]
184  Packet2f eq = pcmp_eq<Packet2f>(a.v, b.v);
185  // Swap real/imag elements in the mask in to get:
186  // [im(a[0])==im(b[0]), re(a[0])==re(b[0])]
187  Packet2f eq_swapped = vrev64_f32(eq);
188  // Return re(a)==re(b) && im(a)==im(b) by computing bitwise AND of eq and eq_swapped
189  return Packet1cf(pand<Packet2f>(eq, eq_swapped));
190 }
191 template<> EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf& a, const Packet2cf& b)
192 {
193  // Compare real and imaginary parts of a and b to get the mask vector:
194  // [re(a[0])==re(b[0]), im(a[0])==im(b[0]), re(a[1])==re(b[1]), im(a[1])==im(b[1])]
195  Packet4f eq = pcmp_eq<Packet4f>(a.v, b.v);
196  // Swap real/imag elements in the mask in to get:
197  // [im(a[0])==im(b[0]), re(a[0])==re(b[0]), im(a[1])==im(b[1]), re(a[1])==re(b[1])]
198  Packet4f eq_swapped = vrev64q_f32(eq);
199  // Return re(a)==re(b) && im(a)==im(b) by computing bitwise AND of eq and eq_swapped
200  return Packet2cf(pand<Packet4f>(eq, eq_swapped));
201 }
202 
204 { return Packet1cf(vreinterpret_f32_u32(vand_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
205 template<> EIGEN_STRONG_INLINE Packet2cf pand<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
206 { return Packet2cf(vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(a.v), vreinterpretq_u32_f32(b.v)))); }
207 
209 { return Packet1cf(vreinterpret_f32_u32(vorr_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
210 template<> EIGEN_STRONG_INLINE Packet2cf por<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
211 { return Packet2cf(vreinterpretq_f32_u32(vorrq_u32(vreinterpretq_u32_f32(a.v), vreinterpretq_u32_f32(b.v)))); }
212 
214 { return Packet1cf(vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
215 template<> EIGEN_STRONG_INLINE Packet2cf pxor<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
216 { return Packet2cf(vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(a.v), vreinterpretq_u32_f32(b.v)))); }
217 
219 { return Packet1cf(vreinterpret_f32_u32(vbic_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
220 template<> EIGEN_STRONG_INLINE Packet2cf pandnot<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
221 { return Packet2cf(vreinterpretq_f32_u32(vbicq_u32(vreinterpretq_u32_f32(a.v), vreinterpretq_u32_f32(b.v)))); }
222 
223 template<> EIGEN_STRONG_INLINE Packet1cf pload<Packet1cf>(const std::complex<float>* from)
224 { EIGEN_DEBUG_ALIGNED_LOAD return Packet1cf(pload<Packet2f>((const float*)from)); }
225 template<> EIGEN_STRONG_INLINE Packet2cf pload<Packet2cf>(const std::complex<float>* from)
226 { EIGEN_DEBUG_ALIGNED_LOAD return Packet2cf(pload<Packet4f>(reinterpret_cast<const float*>(from))); }
227 
228 template<> EIGEN_STRONG_INLINE Packet1cf ploadu<Packet1cf>(const std::complex<float>* from)
229 { EIGEN_DEBUG_UNALIGNED_LOAD return Packet1cf(ploadu<Packet2f>((const float*)from)); }
230 template<> EIGEN_STRONG_INLINE Packet2cf ploadu<Packet2cf>(const std::complex<float>* from)
231 { EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cf(ploadu<Packet4f>(reinterpret_cast<const float*>(from))); }
232 
233 template<> EIGEN_STRONG_INLINE Packet1cf ploaddup<Packet1cf>(const std::complex<float>* from)
234 { return pset1<Packet1cf>(*from); }
235 template<> EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(const std::complex<float>* from)
236 { return pset1<Packet2cf>(*from); }
237 
238 template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float> *to, const Packet1cf& from)
239 { EIGEN_DEBUG_ALIGNED_STORE pstore((float*)to, from.v); }
240 template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float> *to, const Packet2cf& from)
241 { EIGEN_DEBUG_ALIGNED_STORE pstore(reinterpret_cast<float*>(to), from.v); }
242 
243 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float> *to, const Packet1cf& from)
244 { EIGEN_DEBUG_UNALIGNED_STORE pstoreu((float*)to, from.v); }
245 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float> *to, const Packet2cf& from)
246 { EIGEN_DEBUG_UNALIGNED_STORE pstoreu(reinterpret_cast<float*>(to), from.v); }
247 
248 template<> EIGEN_DEVICE_FUNC inline Packet1cf pgather<std::complex<float>, Packet1cf>(
249  const std::complex<float>* from, Index stride)
250 {
251  const Packet2f tmp = vdup_n_f32(std::real(from[0*stride]));
252  return Packet1cf(vset_lane_f32(std::imag(from[0*stride]), tmp, 1));
253 }
254 template<> EIGEN_DEVICE_FUNC inline Packet2cf pgather<std::complex<float>, Packet2cf>(
255  const std::complex<float>* from, Index stride)
256 {
257  Packet4f res = vdupq_n_f32(std::real(from[0*stride]));
258  res = vsetq_lane_f32(std::imag(from[0*stride]), res, 1);
259  res = vsetq_lane_f32(std::real(from[1*stride]), res, 2);
260  res = vsetq_lane_f32(std::imag(from[1*stride]), res, 3);
261  return Packet2cf(res);
262 }
263 
264 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet1cf>(
265  std::complex<float>* to, const Packet1cf& from, Index stride)
266 { to[stride*0] = std::complex<float>(vget_lane_f32(from.v, 0), vget_lane_f32(from.v, 1)); }
267 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet2cf>(
268  std::complex<float>* to, const Packet2cf& from, Index stride)
269 {
270  to[stride*0] = std::complex<float>(vgetq_lane_f32(from.v, 0), vgetq_lane_f32(from.v, 1));
271  to[stride*1] = std::complex<float>(vgetq_lane_f32(from.v, 2), vgetq_lane_f32(from.v, 3));
272 }
273 
274 template<> EIGEN_STRONG_INLINE void prefetch<std::complex<float> >(const std::complex<float> *addr)
275 { EIGEN_ARM_PREFETCH(reinterpret_cast<const float*>(addr)); }
276 
277 template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet1cf>(const Packet1cf& a)
278 {
279  EIGEN_ALIGN16 std::complex<float> x;
280  vst1_f32(reinterpret_cast<float*>(&x), a.v);
281  return x;
282 }
283 template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(const Packet2cf& a)
284 {
285  EIGEN_ALIGN16 std::complex<float> x[2];
286  vst1q_f32(reinterpret_cast<float*>(x), a.v);
287  return x[0];
288 }
289 
290 template<> EIGEN_STRONG_INLINE Packet1cf preverse(const Packet1cf& a) { return a; }
291 template<> EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf& a)
292 { return Packet2cf(vcombine_f32(vget_high_f32(a.v), vget_low_f32(a.v))); }
293 
295 { return Packet1cf(vrev64_f32(a.v)); }
296 template<> EIGEN_STRONG_INLINE Packet2cf pcplxflip<Packet2cf>(const Packet2cf& a)
297 { return Packet2cf(vrev64q_f32(a.v)); }
298 
299 template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet1cf>(const Packet1cf& a)
300 {
301  std::complex<float> s;
302  vst1_f32((float *)&s, a.v);
303  return s;
304 }
305 template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet2cf>(const Packet2cf& a)
306 {
307  std::complex<float> s;
308  vst1_f32(reinterpret_cast<float*>(&s), vadd_f32(vget_low_f32(a.v), vget_high_f32(a.v)));
309  return s;
310 }
311 
312 template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet1cf>(const Packet1cf& a)
313 {
314  std::complex<float> s;
315  vst1_f32((float *)&s, a.v);
316  return s;
317 }
318 template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet2cf>(const Packet2cf& a)
319 {
320  float32x2_t a1, a2, v1, v2, prod;
321  std::complex<float> s;
322 
323  a1 = vget_low_f32(a.v);
324  a2 = vget_high_f32(a.v);
325  // Get the real values of a | a1_re | a1_re | a2_re | a2_re |
326  v1 = vdup_lane_f32(a1, 0);
327  // Get the real values of a | a1_im | a1_im | a2_im | a2_im |
328  v2 = vdup_lane_f32(a1, 1);
329  // Multiply the real a with b
330  v1 = vmul_f32(v1, a2);
331  // Multiply the imag a with b
332  v2 = vmul_f32(v2, a2);
333  // Conjugate v2
334  v2 = vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(v2), p2ui_CONJ_XOR()));
335  // Swap real/imag elements in v2.
336  v2 = vrev64_f32(v2);
337  // Add v1, v2
338  prod = vadd_f32(v1, v2);
339 
340  vst1_f32(reinterpret_cast<float*>(&s), prod);
341 
342  return s;
343 }
344 
347 
349 {
350  // TODO optimize it for NEON
351  Packet1cf res = pmul(a, pconj(b));
352  Packet2f s, rev_s;
353 
354  // this computes the norm
355  s = vmul_f32(b.v, b.v);
356  rev_s = vrev64_f32(s);
357 
358  return Packet1cf(pdiv<Packet2f>(res.v, vadd_f32(s, rev_s)));
359 }
360 template<> EIGEN_STRONG_INLINE Packet2cf pdiv<Packet2cf>(const Packet2cf& a, const Packet2cf& b)
361 {
362  // TODO optimize it for NEON
363  Packet2cf res = pmul(a,pconj(b));
364  Packet4f s, rev_s;
365 
366  // this computes the norm
367  s = vmulq_f32(b.v, b.v);
368  rev_s = vrev64q_f32(s);
369 
370  return Packet2cf(pdiv<Packet4f>(res.v, vaddq_f32(s, rev_s)));
371 }
372 
374 EIGEN_DEVICE_FUNC inline void ptranspose(PacketBlock<Packet2cf, 2>& kernel)
375 {
376  Packet4f tmp = vcombine_f32(vget_high_f32(kernel.packet[0].v), vget_high_f32(kernel.packet[1].v));
377  kernel.packet[0].v = vcombine_f32(vget_low_f32(kernel.packet[0].v), vget_low_f32(kernel.packet[1].v));
378  kernel.packet[1].v = tmp;
379 }
380 
382  return psqrt_complex<Packet1cf>(a);
383 }
384 
385 template<> EIGEN_STRONG_INLINE Packet2cf psqrt<Packet2cf>(const Packet2cf& a) {
386  return psqrt_complex<Packet2cf>(a);
387 }
388 
389 //---------- double ----------
390 #if EIGEN_ARCH_ARM64 && !EIGEN_APPLE_DOUBLE_NEON_BUG
391 
392 // See bug 1325, clang fails to call vld1q_u64.
393 #if EIGEN_COMP_CLANG || EIGEN_COMP_CASTXML
394  static uint64x2_t p2ul_CONJ_XOR = {0x0, 0x8000000000000000};
395 #else
396  const uint64_t p2ul_conj_XOR_DATA[] = { 0x0, 0x8000000000000000 };
397  static uint64x2_t p2ul_CONJ_XOR = vld1q_u64( p2ul_conj_XOR_DATA );
398 #endif
399 
400 struct Packet1cd
401 {
403  EIGEN_STRONG_INLINE explicit Packet1cd(const Packet2d& a) : v(a) {}
404  Packet2d v;
405 };
406 
407 template<> struct packet_traits<std::complex<double> > : default_packet_traits
408 {
409  typedef Packet1cd type;
410  typedef Packet1cd half;
411  enum
412  {
413  Vectorizable = 1,
414  AlignedOnScalar = 0,
415  size = 1,
416  HasHalfPacket = 0,
417 
418  HasAdd = 1,
419  HasSub = 1,
420  HasMul = 1,
421  HasDiv = 1,
422  HasNegate = 1,
423  HasAbs = 0,
424  HasAbs2 = 0,
425  HasMin = 0,
426  HasMax = 0,
427  HasSetLinear = 0
428  };
429 };
430 
431 template<> struct unpacket_traits<Packet1cd>
432 {
433  typedef std::complex<double> type;
434  typedef Packet1cd half;
435  typedef Packet2d as_real;
436  enum
437  {
438  size=1,
440  vectorizable=true,
441  masked_load_available=false,
443  };
444 };
445 
446 template<> EIGEN_STRONG_INLINE Packet1cd pload<Packet1cd>(const std::complex<double>* from)
447 { EIGEN_DEBUG_ALIGNED_LOAD return Packet1cd(pload<Packet2d>(reinterpret_cast<const double*>(from))); }
448 
449 template<> EIGEN_STRONG_INLINE Packet1cd ploadu<Packet1cd>(const std::complex<double>* from)
450 { EIGEN_DEBUG_UNALIGNED_LOAD return Packet1cd(ploadu<Packet2d>(reinterpret_cast<const double*>(from))); }
451 
452 template<> EIGEN_STRONG_INLINE Packet1cd pset1<Packet1cd>(const std::complex<double>& from)
453 {
454  /* here we really have to use unaligned loads :( */
455  return ploadu<Packet1cd>(&from);
456 }
457 
458 template<> EIGEN_STRONG_INLINE Packet1cd padd<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
459 { return Packet1cd(padd<Packet2d>(a.v, b.v)); }
460 
461 template<> EIGEN_STRONG_INLINE Packet1cd psub<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
462 { return Packet1cd(psub<Packet2d>(a.v, b.v)); }
463 
464 template<> EIGEN_STRONG_INLINE Packet1cd pnegate(const Packet1cd& a)
465 { return Packet1cd(pnegate<Packet2d>(a.v)); }
466 
467 template<> EIGEN_STRONG_INLINE Packet1cd pconj(const Packet1cd& a)
468 { return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v), p2ul_CONJ_XOR))); }
469 
470 template<> EIGEN_STRONG_INLINE Packet1cd pmul<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
471 {
472  Packet2d v1, v2;
473 
474  // Get the real values of a
475  v1 = vdupq_lane_f64(vget_low_f64(a.v), 0);
476  // Get the imag values of a
477  v2 = vdupq_lane_f64(vget_high_f64(a.v), 0);
478  // Multiply the real a with b
479  v1 = vmulq_f64(v1, b.v);
480  // Multiply the imag a with b
481  v2 = vmulq_f64(v2, b.v);
482  // Conjugate v2
483  v2 = vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(v2), p2ul_CONJ_XOR));
484  // Swap real/imag elements in v2.
485  v2 = preverse<Packet2d>(v2);
486  // Add and return the result
487  return Packet1cd(vaddq_f64(v1, v2));
488 }
489 
490 template<> EIGEN_STRONG_INLINE Packet1cd pcmp_eq(const Packet1cd& a, const Packet1cd& b)
491 {
492  // Compare real and imaginary parts of a and b to get the mask vector:
493  // [re(a)==re(b), im(a)==im(b)]
494  Packet2d eq = pcmp_eq<Packet2d>(a.v, b.v);
495  // Swap real/imag elements in the mask in to get:
496  // [im(a)==im(b), re(a)==re(b)]
497  Packet2d eq_swapped = vreinterpretq_f64_u32(vrev64q_u32(vreinterpretq_u32_f64(eq)));
498  // Return re(a)==re(b) & im(a)==im(b) by computing bitwise AND of eq and eq_swapped
499  return Packet1cd(pand<Packet2d>(eq, eq_swapped));
500 }
501 
502 template<> EIGEN_STRONG_INLINE Packet1cd pand<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
503 { return Packet1cd(vreinterpretq_f64_u64(vandq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
504 
505 template<> EIGEN_STRONG_INLINE Packet1cd por<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
506 { return Packet1cd(vreinterpretq_f64_u64(vorrq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
507 
508 template<> EIGEN_STRONG_INLINE Packet1cd pxor<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
509 { return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
510 
511 template<> EIGEN_STRONG_INLINE Packet1cd pandnot<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
512 { return Packet1cd(vreinterpretq_f64_u64(vbicq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
513 
514 template<> EIGEN_STRONG_INLINE Packet1cd ploaddup<Packet1cd>(const std::complex<double>* from)
515 { return pset1<Packet1cd>(*from); }
516 
517 template<> EIGEN_STRONG_INLINE void pstore <std::complex<double> >(std::complex<double> *to, const Packet1cd& from)
518 { EIGEN_DEBUG_ALIGNED_STORE pstore(reinterpret_cast<double*>(to), from.v); }
519 
520 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<double> *to, const Packet1cd& from)
521 { EIGEN_DEBUG_UNALIGNED_STORE pstoreu(reinterpret_cast<double*>(to), from.v); }
522 
523 template<> EIGEN_STRONG_INLINE void prefetch<std::complex<double> >(const std::complex<double> *addr)
524 { EIGEN_ARM_PREFETCH(reinterpret_cast<const double*>(addr)); }
525 
526 template<> EIGEN_DEVICE_FUNC inline Packet1cd pgather<std::complex<double>, Packet1cd>(
527  const std::complex<double>* from, Index stride)
528 {
530  res = vsetq_lane_f64(std::real(from[0*stride]), res, 0);
531  res = vsetq_lane_f64(std::imag(from[0*stride]), res, 1);
532  return Packet1cd(res);
533 }
534 
535 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet1cd>(
536  std::complex<double>* to, const Packet1cd& from, Index stride)
537 { to[stride*0] = std::complex<double>(vgetq_lane_f64(from.v, 0), vgetq_lane_f64(from.v, 1)); }
538 
539 template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet1cd>(const Packet1cd& a)
540 {
541  EIGEN_ALIGN16 std::complex<double> res;
542  pstore<std::complex<double> >(&res, a);
543  return res;
544 }
545 
546 template<> EIGEN_STRONG_INLINE Packet1cd preverse(const Packet1cd& a) { return a; }
547 
548 template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
549 
550 template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
551 
553 
554 template<> EIGEN_STRONG_INLINE Packet1cd pdiv<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
555 {
556  // TODO optimize it for NEON
557  Packet1cd res = pmul(a,pconj(b));
558  Packet2d s = pmul<Packet2d>(b.v, b.v);
559  Packet2d rev_s = preverse<Packet2d>(s);
560 
561  return Packet1cd(pdiv(res.v, padd<Packet2d>(s,rev_s)));
562 }
563 
564 EIGEN_STRONG_INLINE Packet1cd pcplxflip/*<Packet1cd>*/(const Packet1cd& x)
565 { return Packet1cd(preverse(Packet2d(x.v))); }
566 
567 EIGEN_STRONG_INLINE void ptranspose(PacketBlock<Packet1cd,2>& kernel)
568 {
569  Packet2d tmp = vcombine_f64(vget_high_f64(kernel.packet[0].v), vget_high_f64(kernel.packet[1].v));
570  kernel.packet[0].v = vcombine_f64(vget_low_f64(kernel.packet[0].v), vget_low_f64(kernel.packet[1].v));
571  kernel.packet[1].v = tmp;
572 }
573 
574 template<> EIGEN_STRONG_INLINE Packet1cd psqrt<Packet1cd>(const Packet1cd& a) {
575  return psqrt_complex<Packet1cd>(a);
576 }
577 
578 #endif // EIGEN_ARCH_ARM64
579 
580 } // end namespace internal
581 
582 } // end namespace Eigen
583 
584 #endif // EIGEN_COMPLEX_NEON_H
Eigen::internal::Packet2cf::v
Packet4f v
Definition: AltiVec/Complex.h:80
Eigen::internal::psqrt< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf psqrt< Packet1cf >(const Packet1cf &a)
Definition: NEON/Complex.h:381
Eigen::internal::ploadu< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf ploadu< Packet2cf >(const std::complex< float > *from)
Definition: AltiVec/Complex.h:124
Eigen::internal::p2ui_CONJ_XOR
uint32x2_t p2ui_CONJ_XOR()
Definition: NEON/Complex.h:30
Eigen::internal::pcmp_eq
EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:231
Eigen::internal::pset1< Packet2d >
EIGEN_STRONG_INLINE Packet2d pset1< Packet2d >(const double &from)
Definition: MSA/PacketMath.h:872
EIGEN_DEVICE_FUNC
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
Eigen::internal::packet_traits::HasAbs
@ HasAbs
Definition: GenericPacketMath.h:121
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
EIGEN_MAKE_CONJ_HELPER_CPLX_REAL
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL)
Definition: ConjHelper.h:14
Eigen::internal::Packet1cf::v
Packet2f v
Definition: NEON/Complex.h:42
Eigen::internal::pmul< Packet2d >
EIGEN_STRONG_INLINE Packet2d pmul< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: MSA/PacketMath.h:916
EIGEN_ARM_PREFETCH
#define EIGEN_ARM_PREFETCH(ADDR)
Definition: NEON/PacketMath.h:162
Eigen::internal::unpacket_traits< Packet2cf >::as_real
Packet4f as_real
Definition: NEON/Complex.h:93
Eigen::internal::packet_traits::HasSub
@ HasSub
Definition: GenericPacketMath.h:118
Eigen::internal::pstoreu
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:700
Eigen::internal::packet_traits::size
@ size
Definition: GenericPacketMath.h:112
Eigen::internal::Packet4f
__vector float Packet4f
Definition: AltiVec/PacketMath.h:30
Eigen::internal::predux_mul< Packet1cf >
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet1cf >(const Packet1cf &a)
Definition: NEON/Complex.h:312
s
RealScalar s
Definition: level1_cplx_impl.h:126
Eigen::internal::pandnot< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pandnot< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:218
Eigen::internal::pmul< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pmul< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:498
Eigen::internal::padd< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf padd< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:117
Eigen::internal::psqrt< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf psqrt< Packet2cf >(const Packet2cf &a)
Definition: AltiVec/Complex.h:244
Eigen::internal::PacketBlock
Definition: GenericPacketMath.h:1014
uint32_t
unsigned int uint32_t
Definition: ms_stdint.h:85
b
Scalar * b
Definition: benchVecAdd.cpp:17
Eigen::internal::pand< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pand< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:169
Eigen::internal::predux_mul< Packet1cd >
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet1cd >(const Packet1cd &a)
Definition: MSA/Complex.h:605
Eigen::internal::ploaddup< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf ploaddup< Packet2cf >(const std::complex< float > *from)
Definition: AltiVec/Complex.h:125
Eigen::internal::pfirst
EIGEN_STRONG_INLINE bfloat16 pfirst(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:1429
Eigen::internal::psub< Packet4f >
EIGEN_STRONG_INLINE Packet4f psub< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:782
x
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
Definition: gnuplot_common_settings.hh:12
Eigen::internal::pcplxflip< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pcplxflip< Packet2cf >(const Packet2cf &x)
Definition: AltiVec/Complex.h:219
ret
DenseIndex ret
Definition: level1_cplx_impl.h:44
Eigen::internal::predux< Packet2cf >
EIGEN_STRONG_INLINE std::complex< float > predux< Packet2cf >(const Packet2cf &a)
Definition: AltiVec/Complex.h:191
Eigen::internal::pandnot< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pandnot< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:526
Eigen::internal::Packet2cf::Packet2cf
EIGEN_STRONG_INLINE Packet2cf(const Packet4f &a)
Definition: NEON/Complex.h:47
Eigen::internal::ploaddup< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf ploaddup< Packet1cf >(const std::complex< float > *from)
Definition: NEON/Complex.h:233
Eigen::internal::preverse
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
Definition: AltiVec/Complex.h:184
Eigen::internal::packet_traits::type
T type
Definition: GenericPacketMath.h:108
real
float real
Definition: datatypes.h:10
Eigen::internal::packet_traits::HasMin
@ HasMin
Definition: GenericPacketMath.h:123
Eigen::internal::pdiv
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:244
Eigen::internal::ploadu< Packet2d >
EIGEN_STRONG_INLINE Packet2d ploadu< Packet2d >(const double *from)
Definition: MSA/PacketMath.h:1004
Eigen::internal::pconj
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition: AltiVec/Complex.h:167
Eigen::internal::unpacket_traits< Packet1cf >::type
std::complex< float > type
Definition: NEON/Complex.h:77
res
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
Eigen::internal::ploadu< Packet4f >
EIGEN_STRONG_INLINE Packet4f ploadu< Packet4f >(const float *from)
Definition: AltiVec/PacketMath.h:968
Eigen::internal::unpacket_traits::vectorizable
@ vectorizable
Definition: GenericPacketMath.h:140
Eigen::internal::padd< Packet2f >
EIGEN_STRONG_INLINE Packet2f padd< Packet2f >(const Packet2f &a, const Packet2f &b)
Definition: NEON/PacketMath.h:805
Eigen::internal::pload< Packet4f >
EIGEN_STRONG_INLINE Packet4f pload< Packet4f >(const float *from)
Definition: AltiVec/PacketMath.h:443
Eigen::internal::ploadu< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd ploadu< Packet1cd >(const std::complex< double > *from)
Definition: MSA/Complex.h:456
Eigen::internal::unpacket_traits< Packet2cf >::type
std::complex< float > type
Definition: NEON/Complex.h:91
Eigen::internal::pcplxflip< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pcplxflip< Packet1cf >(const Packet1cf &a)
Definition: NEON/Complex.h:294
Eigen::internal::packet_traits::HasHalfPacket
@ HasHalfPacket
Definition: GenericPacketMath.h:114
Eigen::internal::padd< Packet4f >
EIGEN_STRONG_INLINE Packet4f padd< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:774
EIGEN_DEBUG_UNALIGNED_STORE
#define EIGEN_DEBUG_UNALIGNED_STORE
Definition: GenericPacketMath.h:39
Eigen::internal::unpacket_traits::masked_store_available
@ masked_store_available
Definition: GenericPacketMath.h:142
Eigen::internal::pload< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pload< Packet1cd >(const std::complex< double > *from)
Definition: MSA/Complex.h:449
Eigen::internal::pand< Packet2d >
EIGEN_STRONG_INLINE Packet2d pand< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: MSA/PacketMath.h:939
Eigen::internal::padd< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd padd< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:470
Eigen::internal::pcast< Packet2f, Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pcast< Packet2f, Packet2cf >(const Packet2f &a)
Definition: NEON/Complex.h:106
Eigen::internal::pxor< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pxor< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:213
Eigen::internal::pcmp_eq< Packet4f >
EIGEN_STRONG_INLINE Packet4f pcmp_eq< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: NEON/PacketMath.h:1400
Eigen::internal::por< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd por< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:512
Eigen::internal::padd< Packet2d >
EIGEN_STRONG_INLINE Packet2d padd< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: MSA/PacketMath.h:880
Eigen::internal::unpacket_traits< Packet1cf >::half
Packet1cf half
Definition: NEON/Complex.h:78
Eigen::internal::pcast< float, Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pcast< float, Packet1cf >(const float &a)
Definition: NEON/Complex.h:104
align_3::a1
Point2 a1
Definition: testPose2.cpp:769
Eigen::internal::unpacket_traits::size
@ size
Definition: GenericPacketMath.h:138
Eigen::internal::Packet1cf::Packet1cf
EIGEN_STRONG_INLINE Packet1cf()
Definition: NEON/Complex.h:40
Eigen::internal::unpacket_traits::alignment
@ alignment
Definition: GenericPacketMath.h:139
Eigen::internal::psub< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf psub< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:122
Eigen::internal::unpacket_traits::half
T half
Definition: GenericPacketMath.h:135
Eigen::internal::Packet1cd::Packet1cd
EIGEN_STRONG_INLINE Packet1cd()
Definition: MSA/Complex.h:342
Eigen::internal::pfirst< Packet1cd >
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet1cd >(const Packet1cd &a)
Definition: MSA/Complex.h:584
Eigen::internal::Packet4ui
__vector unsigned int Packet4ui
Definition: AltiVec/PacketMath.h:32
Eigen::internal::Packet2ui
uint32x2_t Packet2ui
Definition: NEON/PacketMath.h:76
Eigen::internal::packet_traits< std::complex< float > >::type
Packet2cf type
Definition: NEON/Complex.h:53
Eigen::internal::packet_traits::AlignedOnScalar
@ AlignedOnScalar
Definition: GenericPacketMath.h:113
Eigen::internal::pdiv< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pdiv< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:614
Eigen::internal::psub< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd psub< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:477
Eigen::internal::padd< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf padd< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:164
Eigen::internal::packet_traits::half
T half
Definition: GenericPacketMath.h:109
Eigen::internal::pload< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pload< Packet2cf >(const std::complex< float > *from)
Definition: AltiVec/Complex.h:123
Eigen::internal::pnegate
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
Definition: AltiVec/Complex.h:166
Eigen::internal::pset1< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pset1< Packet2cf >(const std::complex< float > &from)
Definition: AltiVec/Complex.h:112
Eigen::internal::unpacket_traits
Definition: GenericPacketMath.h:132
Eigen::internal::ptranspose
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
Definition: AltiVec/Complex.h:224
Eigen::internal::Packet2cf
Definition: AltiVec/Complex.h:30
Eigen::internal::Packet1cf
Definition: NEON/Complex.h:38
Eigen::internal::pfirst< Packet2cf >
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet2cf >(const Packet2cf &a)
Definition: AltiVec/Complex.h:176
EIGEN_DEBUG_ALIGNED_LOAD
#define EIGEN_DEBUG_ALIGNED_LOAD
Definition: GenericPacketMath.h:27
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
Eigen::internal::pmul< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pmul< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: MSA/Complex.h:173
Eigen::internal::pset1< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pset1< Packet1cf >(const std::complex< float > &from)
Definition: NEON/Complex.h:109
Eigen::internal::pset1< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pset1< Packet1cd >(const std::complex< double > &from)
Definition: MSA/Complex.h:463
Eigen::internal::Packet2cf::Packet2cf
EIGEN_STRONG_INLINE Packet2cf()
Definition: NEON/Complex.h:46
Eigen::internal::Packet1cf::Packet1cf
EIGEN_STRONG_INLINE Packet1cf(const Packet2f &a)
Definition: NEON/Complex.h:41
imag
const EIGEN_DEVICE_FUNC ImagReturnType imag() const
Definition: CommonCwiseUnaryOps.h:109
Eigen::internal::unpacket_traits< Packet1cf >::as_real
Packet2f as_real
Definition: NEON/Complex.h:79
Eigen::internal::p4ui_CONJ_XOR
static Packet4ui p4ui_CONJ_XOR
Definition: AltiVec/Complex.h:18
Eigen::internal::Packet1cd::v
Packet2d v
Definition: MSA/Complex.h:410
Eigen::internal::psub< Packet2f >
EIGEN_STRONG_INLINE Packet2f psub< Packet2f >(const Packet2f &a, const Packet2f &b)
Definition: NEON/PacketMath.h:834
Eigen::internal::pstore
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:696
Eigen::internal::pmul< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pmul< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:141
Eigen::internal::pcmp_eq< Packet2f >
EIGEN_STRONG_INLINE Packet2f pcmp_eq< Packet2f >(const Packet2f &a, const Packet2f &b)
Definition: NEON/PacketMath.h:1398
Eigen::internal::por< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf por< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:170
Eigen::internal::unpacket_traits::masked_load_available
@ masked_load_available
Definition: GenericPacketMath.h:141
Eigen::internal::psub< Packet2d >
EIGEN_STRONG_INLINE Packet2d psub< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: MSA/PacketMath.h:895
tree::f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Definition: testExpression.cpp:218
Eigen::Aligned16
@ Aligned16
Definition: Constants.h:235
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
Eigen::internal::pload< Packet2f >
EIGEN_STRONG_INLINE Packet2f pload< Packet2f >(const float *from)
Definition: NEON/PacketMath.h:1664
Eigen::internal::packet_traits::HasAbs2
@ HasAbs2
Definition: GenericPacketMath.h:122
Eigen::internal::pmul
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:237
Eigen::internal::unpacket_traits::type
T type
Definition: GenericPacketMath.h:134
Eigen::internal::pload< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pload< Packet1cf >(const std::complex< float > *from)
Definition: NEON/Complex.h:223
Eigen::internal::unpacket_traits< Packet2cf >::half
Packet1cf half
Definition: NEON/Complex.h:92
Eigen::internal::Packet2d
v2f64 Packet2d
Definition: MSA/PacketMath.h:820
EIGEN_DEBUG_UNALIGNED_LOAD
#define EIGEN_DEBUG_UNALIGNED_LOAD
Definition: GenericPacketMath.h:31
align_3::a2
Point2 a2
Definition: testPose2.cpp:770
Eigen::internal::Packet2f
float32x2_t Packet2f
Definition: NEON/PacketMath.h:62
std
Definition: BFloat16.h:88
Eigen::internal::pandnot< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pandnot< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:172
Eigen::internal::pand< Packet4f >
EIGEN_STRONG_INLINE Packet4f pand< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:891
Eigen::internal::psqrt< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd psqrt< Packet1cd >(const Packet1cd &a)
Definition: SSE/Complex.h:340
v2
Vector v2
Definition: testSerializationBase.cpp:39
Eigen::internal::packet_traits::HasAdd
@ HasAdd
Definition: GenericPacketMath.h:117
Eigen::internal::pcplxflip
EIGEN_STRONG_INLINE Packet1cd pcplxflip(const Packet1cd &x)
Definition: MSA/Complex.h:620
Eigen::internal::packet_traits::HasMax
@ HasMax
Definition: GenericPacketMath.h:124
Eigen::internal::pxor< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pxor< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:519
Eigen::internal::psub< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf psub< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:165
Eigen::internal::predux< Packet1cf >
EIGEN_STRONG_INLINE std::complex< float > predux< Packet1cf >(const Packet1cf &a)
Definition: NEON/Complex.h:299
Eigen::internal::ploaddup< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd ploaddup< Packet1cd >(const std::complex< double > *from)
Definition: MSA/Complex.h:533
Eigen::internal::ploadu< Packet2f >
EIGEN_STRONG_INLINE Packet2f ploadu< Packet2f >(const float *from)
Definition: NEON/PacketMath.h:1709
Eigen::internal::packet_traits::HasNegate
@ HasNegate
Definition: GenericPacketMath.h:120
Eigen::internal::default_packet_traits::HasDiv
@ HasDiv
Definition: GenericPacketMath.h:65
uint64_t
unsigned __int64 uint64_t
Definition: ms_stdint.h:95
EIGEN_ALIGN16
#define EIGEN_ALIGN16
Definition: ConfigureVectorization.h:153
Eigen::internal::pxor< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pxor< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:171
Eigen::internal::pand< Packet2f >
EIGEN_STRONG_INLINE Packet2f pand< Packet2f >(const Packet2f &a, const Packet2f &b)
Definition: NEON/PacketMath.h:1465
internal
Definition: BandTriangularSolver.h:13
Eigen::internal::pand< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf pand< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:203
Eigen::internal::pdiv< Packet4f >
EIGEN_STRONG_INLINE Packet4f pdiv< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:803
Eigen::internal::pand< Packet1cd >
EIGEN_STRONG_INLINE Packet1cd pand< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition: MSA/Complex.h:505
Eigen::internal::predux_mul< Packet2cf >
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet2cf >(const Packet2cf &a)
Definition: AltiVec/Complex.h:199
Eigen::internal::packet_traits::HasMul
@ HasMul
Definition: GenericPacketMath.h:119
Eigen::internal::packet_traits::Vectorizable
@ Vectorizable
Definition: GenericPacketMath.h:111
Eigen::internal::packet_traits< std::complex< float > >::half
Packet1cf half
Definition: NEON/Complex.h:54
Eigen::prod
const Product< Lhs, Rhs > prod(const Lhs &lhs, const Rhs &rhs)
Definition: evaluators.cpp:8
Eigen::internal::ploadu< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf ploadu< Packet1cf >(const std::complex< float > *from)
Definition: NEON/Complex.h:228
Eigen::internal::pdiv< Packet2f >
EIGEN_STRONG_INLINE Packet2f pdiv< Packet2f >(const Packet2f &a, const Packet2f &b)
Definition: NEON/PacketMath.h:950
Eigen::internal::por< Packet1cf >
EIGEN_STRONG_INLINE Packet1cf por< Packet1cf >(const Packet1cf &a, const Packet1cf &b)
Definition: NEON/Complex.h:208
Eigen::internal::pload< Packet2d >
EIGEN_STRONG_INLINE Packet2d pload< Packet2d >(const double *from)
Definition: MSA/PacketMath.h:967
EIGEN_DEBUG_ALIGNED_STORE
#define EIGEN_DEBUG_ALIGNED_STORE
Definition: GenericPacketMath.h:35
v1
Vector v1
Definition: testSerializationBase.cpp:38
complex
Definition: datatypes.h:12
Eigen::internal::packet_traits::HasSetLinear
@ HasSetLinear
Definition: GenericPacketMath.h:126
Eigen::internal::predux< Packet1cd >
EIGEN_STRONG_INLINE std::complex< double > predux< Packet1cd >(const Packet1cd &a)
Definition: MSA/Complex.h:598
Eigen::internal::pdiv< Packet2cf >
EIGEN_STRONG_INLINE Packet2cf pdiv< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:211
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::internal::pfirst< Packet1cf >
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet1cf >(const Packet1cf &a)
Definition: NEON/Complex.h:277


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:16