AVX/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) 2014 Benoit Steiner (benoit.steiner.goog@gmail.com)
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_COMPLEX_AVX_H
11 #define EIGEN_COMPLEX_AVX_H
12 
13 namespace Eigen {
14 
15 namespace internal {
16 
17 //---------- float ----------
18 struct Packet4cf
19 {
21  EIGEN_STRONG_INLINE explicit Packet4cf(const __m256& a) : v(a) {}
22  __m256 v;
23 };
24 
25 template<> struct packet_traits<std::complex<float> > : default_packet_traits
26 {
27  typedef Packet4cf type;
28  typedef Packet2cf half;
29  enum {
30  Vectorizable = 1,
31  AlignedOnScalar = 1,
32  size = 4,
33  HasHalfPacket = 1,
34 
35  HasAdd = 1,
36  HasSub = 1,
37  HasMul = 1,
38  HasDiv = 1,
39  HasNegate = 1,
40  HasAbs = 0,
41  HasAbs2 = 0,
42  HasMin = 0,
43  HasMax = 0,
44  HasSetLinear = 0
45  };
46 };
47 
48 template<> struct unpacket_traits<Packet4cf> { typedef std::complex<float> type; enum {size=4, alignment=Aligned32}; typedef Packet2cf half; };
49 
50 template<> EIGEN_STRONG_INLINE Packet4cf padd<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_add_ps(a.v,b.v)); }
51 template<> EIGEN_STRONG_INLINE Packet4cf psub<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_sub_ps(a.v,b.v)); }
53 {
54  return Packet4cf(pnegate(a.v));
55 }
57 {
58  const __m256 mask = _mm256_castsi256_ps(_mm256_setr_epi32(0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000));
59  return Packet4cf(_mm256_xor_ps(a.v,mask));
60 }
61 
63 {
64  __m256 tmp1 = _mm256_mul_ps(_mm256_moveldup_ps(a.v), b.v);
65  __m256 tmp2 = _mm256_mul_ps(_mm256_movehdup_ps(a.v), _mm256_permute_ps(b.v, _MM_SHUFFLE(2,3,0,1)));
66  __m256 result = _mm256_addsub_ps(tmp1, tmp2);
67  return Packet4cf(result);
68 }
69 
70 template<> EIGEN_STRONG_INLINE Packet4cf pand <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_and_ps(a.v,b.v)); }
71 template<> EIGEN_STRONG_INLINE Packet4cf por <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_or_ps(a.v,b.v)); }
72 template<> EIGEN_STRONG_INLINE Packet4cf pxor <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_xor_ps(a.v,b.v)); }
73 template<> EIGEN_STRONG_INLINE Packet4cf pandnot<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_andnot_ps(a.v,b.v)); }
74 
77 
78 
79 template<> EIGEN_STRONG_INLINE Packet4cf pset1<Packet4cf>(const std::complex<float>& from)
80 {
81  return Packet4cf(_mm256_castpd_ps(_mm256_broadcast_sd((const double*)(const void*)&from)));
82 }
83 
84 template<> EIGEN_STRONG_INLINE Packet4cf ploaddup<Packet4cf>(const std::complex<float>* from)
85 {
86  // FIXME The following might be optimized using _mm256_movedup_pd
89  return Packet4cf(_mm256_insertf128_ps(_mm256_castps128_ps256(a.v), b.v, 1));
90 }
91 
92 template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float>* to, const Packet4cf& from) { EIGEN_DEBUG_ALIGNED_STORE pstore(&numext::real_ref(*to), from.v); }
93 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float>* to, const Packet4cf& from) { EIGEN_DEBUG_UNALIGNED_STORE pstoreu(&numext::real_ref(*to), from.v); }
94 
95 template<> EIGEN_DEVICE_FUNC inline Packet4cf pgather<std::complex<float>, Packet4cf>(const std::complex<float>* from, Index stride)
96 {
97  return Packet4cf(_mm256_set_ps(std::imag(from[3*stride]), std::real(from[3*stride]),
98  std::imag(from[2*stride]), std::real(from[2*stride]),
99  std::imag(from[1*stride]), std::real(from[1*stride]),
100  std::imag(from[0*stride]), std::real(from[0*stride])));
101 }
102 
103 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet4cf>(std::complex<float>* to, const Packet4cf& from, Index stride)
104 {
105  __m128 low = _mm256_extractf128_ps(from.v, 0);
106  to[stride*0] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(low, low, 0)),
107  _mm_cvtss_f32(_mm_shuffle_ps(low, low, 1)));
108  to[stride*1] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(low, low, 2)),
109  _mm_cvtss_f32(_mm_shuffle_ps(low, low, 3)));
110 
111  __m128 high = _mm256_extractf128_ps(from.v, 1);
112  to[stride*2] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(high, high, 0)),
113  _mm_cvtss_f32(_mm_shuffle_ps(high, high, 1)));
114  to[stride*3] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(high, high, 2)),
115  _mm_cvtss_f32(_mm_shuffle_ps(high, high, 3)));
116 
117 }
118 
119 template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet4cf>(const Packet4cf& a)
120 {
121  return pfirst(Packet2cf(_mm256_castps256_ps128(a.v)));
122 }
123 
125  __m128 low = _mm256_extractf128_ps(a.v, 0);
126  __m128 high = _mm256_extractf128_ps(a.v, 1);
127  __m128d lowd = _mm_castps_pd(low);
128  __m128d highd = _mm_castps_pd(high);
129  low = _mm_castpd_ps(_mm_shuffle_pd(lowd,lowd,0x1));
130  high = _mm_castpd_ps(_mm_shuffle_pd(highd,highd,0x1));
131  __m256 result = _mm256_setzero_ps();
132  result = _mm256_insertf128_ps(result, low, 1);
133  result = _mm256_insertf128_ps(result, high, 0);
134  return Packet4cf(result);
135 }
136 
137 template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet4cf>(const Packet4cf& a)
138 {
139  return predux(padd(Packet2cf(_mm256_extractf128_ps(a.v,0)),
140  Packet2cf(_mm256_extractf128_ps(a.v,1))));
141 }
142 
144 {
145  Packet8f t0 = _mm256_shuffle_ps(vecs[0].v, vecs[0].v, _MM_SHUFFLE(3, 1, 2 ,0));
146  Packet8f t1 = _mm256_shuffle_ps(vecs[1].v, vecs[1].v, _MM_SHUFFLE(3, 1, 2 ,0));
147  t0 = _mm256_hadd_ps(t0,t1);
148  Packet8f t2 = _mm256_shuffle_ps(vecs[2].v, vecs[2].v, _MM_SHUFFLE(3, 1, 2 ,0));
149  Packet8f t3 = _mm256_shuffle_ps(vecs[3].v, vecs[3].v, _MM_SHUFFLE(3, 1, 2 ,0));
150  t2 = _mm256_hadd_ps(t2,t3);
151 
152  t1 = _mm256_permute2f128_ps(t0,t2, 0 + (2<<4));
153  t3 = _mm256_permute2f128_ps(t0,t2, 1 + (3<<4));
154 
155  return Packet4cf(_mm256_add_ps(t1,t3));
156 }
157 
158 template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet4cf>(const Packet4cf& a)
159 {
160  return predux_mul(pmul(Packet2cf(_mm256_extractf128_ps(a.v, 0)),
161  Packet2cf(_mm256_extractf128_ps(a.v, 1))));
162 }
163 
164 template<int Offset>
165 struct palign_impl<Offset,Packet4cf>
166 {
167  static EIGEN_STRONG_INLINE void run(Packet4cf& first, const Packet4cf& second)
168  {
169  if (Offset==0) return;
170  palign_impl<Offset*2,Packet8f>::run(first.v, second.v);
171  }
172 };
173 
174 template<> struct conj_helper<Packet4cf, Packet4cf, false,true>
175 {
177  { return padd(pmul(x,y),c); }
178 
180  {
181  return internal::pmul(a, pconj(b));
182  }
183 };
184 
185 template<> struct conj_helper<Packet4cf, Packet4cf, true,false>
186 {
188  { return padd(pmul(x,y),c); }
189 
191  {
192  return internal::pmul(pconj(a), b);
193  }
194 };
195 
196 template<> struct conj_helper<Packet4cf, Packet4cf, true,true>
197 {
199  { return padd(pmul(x,y),c); }
200 
202  {
203  return pconj(internal::pmul(a, b));
204  }
205 };
206 
208 
210 {
211  Packet4cf num = pmul(a, pconj(b));
212  __m256 tmp = _mm256_mul_ps(b.v, b.v);
213  __m256 tmp2 = _mm256_shuffle_ps(tmp,tmp,0xB1);
214  __m256 denom = _mm256_add_ps(tmp, tmp2);
215  return Packet4cf(_mm256_div_ps(num.v, denom));
216 }
217 
219 {
220  return Packet4cf(_mm256_shuffle_ps(x.v, x.v, _MM_SHUFFLE(2, 3, 0 ,1)));
221 }
222 
223 //---------- double ----------
224 struct Packet2cd
225 {
227  EIGEN_STRONG_INLINE explicit Packet2cd(const __m256d& a) : v(a) {}
228  __m256d v;
229 };
230 
231 template<> struct packet_traits<std::complex<double> > : default_packet_traits
232 {
233  typedef Packet2cd type;
234  typedef Packet1cd half;
235  enum {
236  Vectorizable = 1,
237  AlignedOnScalar = 0,
238  size = 2,
239  HasHalfPacket = 1,
240 
241  HasAdd = 1,
242  HasSub = 1,
243  HasMul = 1,
244  HasDiv = 1,
245  HasNegate = 1,
246  HasAbs = 0,
247  HasAbs2 = 0,
248  HasMin = 0,
249  HasMax = 0,
250  HasSetLinear = 0
251  };
252 };
253 
254 template<> struct unpacket_traits<Packet2cd> { typedef std::complex<double> type; enum {size=2, alignment=Aligned32}; typedef Packet1cd half; };
255 
256 template<> EIGEN_STRONG_INLINE Packet2cd padd<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_add_pd(a.v,b.v)); }
257 template<> EIGEN_STRONG_INLINE Packet2cd psub<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_sub_pd(a.v,b.v)); }
258 template<> EIGEN_STRONG_INLINE Packet2cd pnegate(const Packet2cd& a) { return Packet2cd(pnegate(a.v)); }
260 {
261  const __m256d mask = _mm256_castsi256_pd(_mm256_set_epi32(0x80000000,0x0,0x0,0x0,0x80000000,0x0,0x0,0x0));
262  return Packet2cd(_mm256_xor_pd(a.v,mask));
263 }
264 
266 {
267  __m256d tmp1 = _mm256_shuffle_pd(a.v,a.v,0x0);
268  __m256d even = _mm256_mul_pd(tmp1, b.v);
269  __m256d tmp2 = _mm256_shuffle_pd(a.v,a.v,0xF);
270  __m256d tmp3 = _mm256_shuffle_pd(b.v,b.v,0x5);
271  __m256d odd = _mm256_mul_pd(tmp2, tmp3);
272  return Packet2cd(_mm256_addsub_pd(even, odd));
273 }
274 
275 template<> EIGEN_STRONG_INLINE Packet2cd pand <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_and_pd(a.v,b.v)); }
276 template<> EIGEN_STRONG_INLINE Packet2cd por <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_or_pd(a.v,b.v)); }
277 template<> EIGEN_STRONG_INLINE Packet2cd pxor <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_xor_pd(a.v,b.v)); }
278 template<> EIGEN_STRONG_INLINE Packet2cd pandnot<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_andnot_pd(a.v,b.v)); }
279 
280 template<> EIGEN_STRONG_INLINE Packet2cd pload <Packet2cd>(const std::complex<double>* from)
281 { EIGEN_DEBUG_ALIGNED_LOAD return Packet2cd(pload<Packet4d>((const double*)from)); }
282 template<> EIGEN_STRONG_INLINE Packet2cd ploadu<Packet2cd>(const std::complex<double>* from)
283 { EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cd(ploadu<Packet4d>((const double*)from)); }
284 
285 template<> EIGEN_STRONG_INLINE Packet2cd pset1<Packet2cd>(const std::complex<double>& from)
286 {
287  // in case casting to a __m128d* is really not safe, then we can still fallback to this version: (much slower though)
288 // return Packet2cd(_mm256_loadu2_m128d((const double*)&from,(const double*)&from));
289  return Packet2cd(_mm256_broadcast_pd((const __m128d*)(const void*)&from));
290 }
291 
292 template<> EIGEN_STRONG_INLINE Packet2cd ploaddup<Packet2cd>(const std::complex<double>* from) { return pset1<Packet2cd>(*from); }
293 
294 template<> EIGEN_STRONG_INLINE void pstore <std::complex<double> >(std::complex<double> * to, const Packet2cd& from) { EIGEN_DEBUG_ALIGNED_STORE pstore((double*)to, from.v); }
295 template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<double> * to, const Packet2cd& from) { EIGEN_DEBUG_UNALIGNED_STORE pstoreu((double*)to, from.v); }
296 
297 template<> EIGEN_DEVICE_FUNC inline Packet2cd pgather<std::complex<double>, Packet2cd>(const std::complex<double>* from, Index stride)
298 {
299  return Packet2cd(_mm256_set_pd(std::imag(from[1*stride]), std::real(from[1*stride]),
300  std::imag(from[0*stride]), std::real(from[0*stride])));
301 }
302 
303 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet2cd>(std::complex<double>* to, const Packet2cd& from, Index stride)
304 {
305  __m128d low = _mm256_extractf128_pd(from.v, 0);
306  to[stride*0] = std::complex<double>(_mm_cvtsd_f64(low), _mm_cvtsd_f64(_mm_shuffle_pd(low, low, 1)));
307  __m128d high = _mm256_extractf128_pd(from.v, 1);
308  to[stride*1] = std::complex<double>(_mm_cvtsd_f64(high), _mm_cvtsd_f64(_mm_shuffle_pd(high, high, 1)));
309 }
310 
311 template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet2cd>(const Packet2cd& a)
312 {
313  __m128d low = _mm256_extractf128_pd(a.v, 0);
314  EIGEN_ALIGN16 double res[2];
315  _mm_store_pd(res, low);
316  return std::complex<double>(res[0],res[1]);
317 }
318 
320  __m256d result = _mm256_permute2f128_pd(a.v, a.v, 1);
321  return Packet2cd(result);
322 }
323 
324 template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet2cd>(const Packet2cd& a)
325 {
326  return predux(padd(Packet1cd(_mm256_extractf128_pd(a.v,0)),
327  Packet1cd(_mm256_extractf128_pd(a.v,1))));
328 }
329 
331 {
332  Packet4d t0 = _mm256_permute2f128_pd(vecs[0].v,vecs[1].v, 0 + (2<<4));
333  Packet4d t1 = _mm256_permute2f128_pd(vecs[0].v,vecs[1].v, 1 + (3<<4));
334 
335  return Packet2cd(_mm256_add_pd(t0,t1));
336 }
337 
338 template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet2cd>(const Packet2cd& a)
339 {
340  return predux(pmul(Packet1cd(_mm256_extractf128_pd(a.v,0)),
341  Packet1cd(_mm256_extractf128_pd(a.v,1))));
342 }
343 
344 template<int Offset>
345 struct palign_impl<Offset,Packet2cd>
346 {
347  static EIGEN_STRONG_INLINE void run(Packet2cd& first, const Packet2cd& second)
348  {
349  if (Offset==0) return;
350  palign_impl<Offset*2,Packet4d>::run(first.v, second.v);
351  }
352 };
353 
354 template<> struct conj_helper<Packet2cd, Packet2cd, false,true>
355 {
357  { return padd(pmul(x,y),c); }
358 
360  {
361  return internal::pmul(a, pconj(b));
362  }
363 };
364 
365 template<> struct conj_helper<Packet2cd, Packet2cd, true,false>
366 {
368  { return padd(pmul(x,y),c); }
369 
371  {
372  return internal::pmul(pconj(a), b);
373  }
374 };
375 
376 template<> struct conj_helper<Packet2cd, Packet2cd, true,true>
377 {
379  { return padd(pmul(x,y),c); }
380 
382  {
383  return pconj(internal::pmul(a, b));
384  }
385 };
386 
388 
390 {
391  Packet2cd num = pmul(a, pconj(b));
392  __m256d tmp = _mm256_mul_pd(b.v, b.v);
393  __m256d denom = _mm256_hadd_pd(tmp, tmp);
394  return Packet2cd(_mm256_div_pd(num.v, denom));
395 }
396 
398 {
399  return Packet2cd(_mm256_shuffle_pd(x.v, x.v, 0x5));
400 }
401 
402 EIGEN_DEVICE_FUNC inline void
404  __m256d P0 = _mm256_castps_pd(kernel.packet[0].v);
405  __m256d P1 = _mm256_castps_pd(kernel.packet[1].v);
406  __m256d P2 = _mm256_castps_pd(kernel.packet[2].v);
407  __m256d P3 = _mm256_castps_pd(kernel.packet[3].v);
408 
409  __m256d T0 = _mm256_shuffle_pd(P0, P1, 15);
410  __m256d T1 = _mm256_shuffle_pd(P0, P1, 0);
411  __m256d T2 = _mm256_shuffle_pd(P2, P3, 15);
412  __m256d T3 = _mm256_shuffle_pd(P2, P3, 0);
413 
414  kernel.packet[1].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T0, T2, 32));
415  kernel.packet[3].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T0, T2, 49));
416  kernel.packet[0].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T1, T3, 32));
417  kernel.packet[2].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T1, T3, 49));
418 }
419 
420 EIGEN_DEVICE_FUNC inline void
422  __m256d tmp = _mm256_permute2f128_pd(kernel.packet[0].v, kernel.packet[1].v, 0+(2<<4));
423  kernel.packet[1].v = _mm256_permute2f128_pd(kernel.packet[0].v, kernel.packet[1].v, 1+(3<<4));
424  kernel.packet[0].v = tmp;
425 }
426 
427 template<> EIGEN_STRONG_INLINE Packet4cf pinsertfirst(const Packet4cf& a, std::complex<float> b)
428 {
429  return Packet4cf(_mm256_blend_ps(a.v,pset1<Packet4cf>(b).v,1|2));
430 }
431 
432 template<> EIGEN_STRONG_INLINE Packet2cd pinsertfirst(const Packet2cd& a, std::complex<double> b)
433 {
434  return Packet2cd(_mm256_blend_pd(a.v,pset1<Packet2cd>(b).v,1|2));
435 }
436 
437 template<> EIGEN_STRONG_INLINE Packet4cf pinsertlast(const Packet4cf& a, std::complex<float> b)
438 {
439  return Packet4cf(_mm256_blend_ps(a.v,pset1<Packet4cf>(b).v,(1<<7)|(1<<6)));
440 }
441 
442 template<> EIGEN_STRONG_INLINE Packet2cd pinsertlast(const Packet2cd& a, std::complex<double> b)
443 {
444  return Packet2cd(_mm256_blend_pd(a.v,pset1<Packet2cd>(b).v,(1<<3)|(1<<2)));
445 }
446 
447 } // end namespace internal
448 
449 } // end namespace Eigen
450 
451 #endif // EIGEN_COMPLEX_AVX_H
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:311
EIGEN_STRONG_INLINE Packet4cf pmul< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:62
EIGEN_STRONG_INLINE Packet2cd pxor< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:277
EIGEN_STRONG_INLINE Packet4cf pxor< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:72
#define EIGEN_STRONG_INLINE
Definition: Macros.h:494
EIGEN_STRONG_INLINE std::complex< double > predux< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:324
EIGEN_STRONG_INLINE Packet2cd pcplxflip< Packet2cd >(const Packet2cd &x)
Definition: AVX/Complex.h:397
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) >::type real_ref(const Scalar &x)
float real
Definition: datatypes.h:10
Scalar * b
Definition: benchVecAdd.cpp:17
static const Pose3 T3(Rot3::Rodrigues(-90, 0, 0), Point3(1, 2, 3))
EIGEN_STRONG_INLINE Packet2cd pmadd(const Packet2cd &x, const Packet2cd &y, const Packet2cd &c) const
Definition: AVX/Complex.h:367
EIGEN_STRONG_INLINE Packet4cf pmadd(const Packet4cf &x, const Packet4cf &y, const Packet4cf &c) const
Definition: AVX/Complex.h:198
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL)
Definition: ConjHelper.h:14
EIGEN_STRONG_INLINE Packet4cf pinsertfirst(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:427
#define EIGEN_DEBUG_UNALIGNED_LOAD
EIGEN_STRONG_INLINE Packet2cd ploaddup< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:292
EIGEN_STRONG_INLINE Packet4cf pand< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:70
EIGEN_STRONG_INLINE Packet4cf pload< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:75
EIGEN_STRONG_INLINE Packet4cf pmul(const Packet4cf &a, const Packet4cf &b) const
Definition: AVX/Complex.h:190
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
EIGEN_STRONG_INLINE Packet4cf pmul(const Packet4cf &a, const Packet4cf &b) const
Definition: AVX/Complex.h:179
#define EIGEN_DEBUG_ALIGNED_STORE
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
EIGEN_STRONG_INLINE Packet4cf ploadu< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:76
Pose2 T2(M_PI/2.0, Point2(0.0, 2.0))
Definition: Half.h:150
EIGEN_STRONG_INLINE Packet2cd pmadd(const Packet2cd &x, const Packet2cd &y, const Packet2cd &c) const
Definition: AVX/Complex.h:356
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
#define EIGEN_DEBUG_UNALIGNED_STORE
static string x5("x5")
static const Matrix93 P3
Definition: SO3.cpp:317
EIGEN_STRONG_INLINE Packet2cd padd< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:256
#define EIGEN_DEBUG_ALIGNED_LOAD
EIGEN_STRONG_INLINE Packet4d ploadu< Packet4d >(const double *from)
EIGEN_STRONG_INLINE Packet4cf ploaddup< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:84
Array33i a
EIGEN_STRONG_INLINE Packet2cd()
Definition: AVX/Complex.h:226
static EIGEN_STRONG_INLINE void run(Packet2cd &first, const Packet2cd &second)
Definition: AVX/Complex.h:347
EIGEN_STRONG_INLINE Packet4cf psub< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:51
EIGEN_STRONG_INLINE Packet4cf pmul(const Packet4cf &a, const Packet4cf &b) const
Definition: AVX/Complex.h:201
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
EIGEN_STRONG_INLINE Packet4cf preduxp< Packet4cf >(const Packet4cf *vecs)
Definition: AVX/Complex.h:143
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
constexpr int first(int i)
Implementation details for constexpr functions.
EIGEN_STRONG_INLINE Packet2cd por< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:276
Values result
EIGEN_STRONG_INLINE Packet2cd pandnot< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:278
EIGEN_STRONG_INLINE Packet2cd pload< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:280
EIGEN_STRONG_INLINE Packet2cd pmul(const Packet2cd &a, const Packet2cd &b) const
Definition: AVX/Complex.h:381
EIGEN_STRONG_INLINE Packet4cf pset1< Packet4cf >(const std::complex< float > &from)
Definition: AVX/Complex.h:79
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type pfirst(const Packet &a)
EIGEN_STRONG_INLINE Packet4d pload< Packet4d >(const double *from)
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet4cf pmadd(const Packet4cf &x, const Packet4cf &y, const Packet4cf &c) const
Definition: AVX/Complex.h:187
EIGEN_STRONG_INLINE Packet2cf ploaddup< Packet2cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE Packet4cf()
Definition: AVX/Complex.h:20
EIGEN_STRONG_INLINE Packet4cf por< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:71
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
static const Point3 P2(3.5,-8.2, 4.2)
static Symbol x0('x', 0)
EIGEN_STRONG_INLINE Packet2cd(const __m256d &a)
Definition: AVX/Complex.h:227
EIGEN_STRONG_INLINE Packet2cd ploadu< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:282
EIGEN_STRONG_INLINE Packet2cd pmul(const Packet2cd &a, const Packet2cd &b) const
Definition: AVX/Complex.h:359
#define EIGEN_ALIGN16
Definition: Macros.h:753
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet2cd psub< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:257
EIGEN_STRONG_INLINE Packet8f ploadu< Packet8f >(const float *from)
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:338
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_mul(const Packet &a)
Pose3 x1
Definition: testPose3.cpp:588
EIGEN_STRONG_INLINE Packet4cf pandnot< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:73
EIGEN_STRONG_INLINE Packet4cf pcplxflip< Packet4cf >(const Packet4cf &x)
Definition: AVX/Complex.h:218
EIGEN_STRONG_INLINE Packet8f pload< Packet8f >(const float *from)
EIGEN_STRONG_INLINE Packet4cf pinsertlast(const Packet4cf &a, std::complex< float > b)
Definition: AVX/Complex.h:437
EIGEN_DEVICE_FUNC const ImagReturnType imag() const
EIGEN_STRONG_INLINE Packet2cd pmadd(const Packet2cd &x, const Packet2cd &y, const Packet2cd &c) const
Definition: AVX/Complex.h:378
EIGEN_STRONG_INLINE Packet4cf pmadd(const Packet4cf &x, const Packet4cf &y, const Packet4cf &c) const
Definition: AVX/Complex.h:176
const Point3 P0(0, 0, 0)
EIGEN_STRONG_INLINE Packet2cd pset1< Packet2cd >(const std::complex< double > &from)
Definition: AVX/Complex.h:285
EIGEN_STRONG_INLINE Packet2cd preduxp< Packet2cd >(const Packet2cd *vecs)
Definition: AVX/Complex.h:330
Pose2 T1(M_PI/4.0, Point2(sqrt(0.5), sqrt(0.5)))
static void run(PacketType &, const PacketType &)
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 Packet4cf(const __m256 &a)
Definition: AVX/Complex.h:21
static EIGEN_STRONG_INLINE void run(Packet4cf &first, const Packet4cf &second)
Definition: AVX/Complex.h:167
EIGEN_STRONG_INLINE std::complex< float > predux< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:137
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:158
EIGEN_STRONG_INLINE Packet4cf padd< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:50
EIGEN_STRONG_INLINE Packet2cd pand< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:275
EIGEN_STRONG_INLINE Packet2cd pmul(const Packet2cd &a, const Packet2cd &b) const
Definition: AVX/Complex.h:370
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2cd pmul< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:265
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:119


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