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 #ifndef EIGEN_VECTORIZE_AVX512
26 template<> struct packet_traits<std::complex<float> > : default_packet_traits
27 {
28  typedef Packet4cf type;
29  typedef Packet2cf half;
30  enum {
31  Vectorizable = 1,
32  AlignedOnScalar = 1,
33  size = 4,
34  HasHalfPacket = 1,
35 
36  HasAdd = 1,
37  HasSub = 1,
38  HasMul = 1,
39  HasDiv = 1,
40  HasNegate = 1,
41  HasSqrt = 1,
42  HasAbs = 0,
43  HasAbs2 = 0,
44  HasMin = 0,
45  HasMax = 0,
46  HasSetLinear = 0
47  };
48 };
49 #endif
50 
51 template<> struct unpacket_traits<Packet4cf> {
52  typedef std::complex<float> type;
53  typedef Packet2cf half;
54  typedef Packet8f as_real;
55  enum {
56  size=4,
61  };
62 };
63 
64 template<> EIGEN_STRONG_INLINE Packet4cf padd<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_add_ps(a.v,b.v)); }
65 template<> EIGEN_STRONG_INLINE Packet4cf psub<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_sub_ps(a.v,b.v)); }
67 {
68  return Packet4cf(pnegate(a.v));
69 }
71 {
72  const __m256 mask = _mm256_castsi256_ps(_mm256_setr_epi32(0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000));
73  return Packet4cf(_mm256_xor_ps(a.v,mask));
74 }
75 
77 {
78  __m256 tmp1 = _mm256_mul_ps(_mm256_moveldup_ps(a.v), b.v);
79  __m256 tmp2 = _mm256_mul_ps(_mm256_movehdup_ps(a.v), _mm256_permute_ps(b.v, _MM_SHUFFLE(2,3,0,1)));
80  __m256 result = _mm256_addsub_ps(tmp1, tmp2);
81  return Packet4cf(result);
82 }
83 
84 template <>
86  __m256 eq = _mm256_cmp_ps(a.v, b.v, _CMP_EQ_OQ);
87  return Packet4cf(_mm256_and_ps(eq, _mm256_permute_ps(eq, 0xb1)));
88 }
89 
91 template<> EIGEN_STRONG_INLINE Packet4cf pand <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_and_ps(a.v,b.v)); }
92 template<> EIGEN_STRONG_INLINE Packet4cf por <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_or_ps(a.v,b.v)); }
93 template<> EIGEN_STRONG_INLINE Packet4cf pxor <Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_xor_ps(a.v,b.v)); }
94 template<> EIGEN_STRONG_INLINE Packet4cf pandnot<Packet4cf>(const Packet4cf& a, const Packet4cf& b) { return Packet4cf(_mm256_andnot_ps(b.v,a.v)); }
95 
98 
99 
100 template<> EIGEN_STRONG_INLINE Packet4cf pset1<Packet4cf>(const std::complex<float>& from)
101 {
102  return Packet4cf(_mm256_castpd_ps(_mm256_broadcast_sd((const double*)(const void*)&from)));
103 }
104 
105 template<> EIGEN_STRONG_INLINE Packet4cf ploaddup<Packet4cf>(const std::complex<float>* from)
106 {
107  // FIXME The following might be optimized using _mm256_movedup_pd
109  Packet2cf b = ploaddup<Packet2cf>(from+1);
110  return Packet4cf(_mm256_insertf128_ps(_mm256_castps128_ps256(a.v), b.v, 1));
111 }
112 
113 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); }
114 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); }
115 
116 template<> EIGEN_DEVICE_FUNC inline Packet4cf pgather<std::complex<float>, Packet4cf>(const std::complex<float>* from, Index stride)
117 {
118  return Packet4cf(_mm256_set_ps(std::imag(from[3*stride]), std::real(from[3*stride]),
119  std::imag(from[2*stride]), std::real(from[2*stride]),
120  std::imag(from[1*stride]), std::real(from[1*stride]),
121  std::imag(from[0*stride]), std::real(from[0*stride])));
122 }
123 
124 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet4cf>(std::complex<float>* to, const Packet4cf& from, Index stride)
125 {
126  __m128 low = _mm256_extractf128_ps(from.v, 0);
127  to[stride*0] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(low, low, 0)),
128  _mm_cvtss_f32(_mm_shuffle_ps(low, low, 1)));
129  to[stride*1] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(low, low, 2)),
130  _mm_cvtss_f32(_mm_shuffle_ps(low, low, 3)));
131 
132  __m128 high = _mm256_extractf128_ps(from.v, 1);
133  to[stride*2] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(high, high, 0)),
134  _mm_cvtss_f32(_mm_shuffle_ps(high, high, 1)));
135  to[stride*3] = std::complex<float>(_mm_cvtss_f32(_mm_shuffle_ps(high, high, 2)),
136  _mm_cvtss_f32(_mm_shuffle_ps(high, high, 3)));
137 
138 }
139 
140 template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet4cf>(const Packet4cf& a)
141 {
142  return pfirst(Packet2cf(_mm256_castps256_ps128(a.v)));
143 }
144 
146  __m128 low = _mm256_extractf128_ps(a.v, 0);
147  __m128 high = _mm256_extractf128_ps(a.v, 1);
148  __m128d lowd = _mm_castps_pd(low);
149  __m128d highd = _mm_castps_pd(high);
150  low = _mm_castpd_ps(_mm_shuffle_pd(lowd,lowd,0x1));
151  high = _mm_castpd_ps(_mm_shuffle_pd(highd,highd,0x1));
152  __m256 result = _mm256_setzero_ps();
153  result = _mm256_insertf128_ps(result, low, 1);
154  result = _mm256_insertf128_ps(result, high, 0);
155  return Packet4cf(result);
156 }
157 
158 template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet4cf>(const Packet4cf& a)
159 {
160  return predux(padd(Packet2cf(_mm256_extractf128_ps(a.v,0)),
161  Packet2cf(_mm256_extractf128_ps(a.v,1))));
162 }
163 
164 template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet4cf>(const Packet4cf& a)
165 {
166  return predux_mul(pmul(Packet2cf(_mm256_extractf128_ps(a.v, 0)),
167  Packet2cf(_mm256_extractf128_ps(a.v, 1))));
168 }
169 
171 
173 {
174  Packet4cf num = pmul(a, pconj(b));
175  __m256 tmp = _mm256_mul_ps(b.v, b.v);
176  __m256 tmp2 = _mm256_shuffle_ps(tmp,tmp,0xB1);
177  __m256 denom = _mm256_add_ps(tmp, tmp2);
178  return Packet4cf(_mm256_div_ps(num.v, denom));
179 }
180 
182 {
183  return Packet4cf(_mm256_shuffle_ps(x.v, x.v, _MM_SHUFFLE(2, 3, 0 ,1)));
184 }
185 
186 //---------- double ----------
187 struct Packet2cd
188 {
190  EIGEN_STRONG_INLINE explicit Packet2cd(const __m256d& a) : v(a) {}
191  __m256d v;
192 };
193 
194 #ifndef EIGEN_VECTORIZE_AVX512
195 template<> struct packet_traits<std::complex<double> > : default_packet_traits
196 {
197  typedef Packet2cd type;
198  typedef Packet1cd half;
199  enum {
202  size = 2,
204 
205  HasAdd = 1,
206  HasSub = 1,
207  HasMul = 1,
208  HasDiv = 1,
210  HasSqrt = 1,
211  HasAbs = 0,
212  HasAbs2 = 0,
213  HasMin = 0,
214  HasMax = 0,
216  };
217 };
218 #endif
219 
220 template<> struct unpacket_traits<Packet2cd> {
221  typedef std::complex<double> type;
222  typedef Packet1cd half;
223  typedef Packet4d as_real;
224  enum {
225  size=2,
230  };
231 };
232 
233 template<> EIGEN_STRONG_INLINE Packet2cd padd<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_add_pd(a.v,b.v)); }
234 template<> EIGEN_STRONG_INLINE Packet2cd psub<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_sub_pd(a.v,b.v)); }
235 template<> EIGEN_STRONG_INLINE Packet2cd pnegate(const Packet2cd& a) { return Packet2cd(pnegate(a.v)); }
237 {
238  const __m256d mask = _mm256_castsi256_pd(_mm256_set_epi32(0x80000000,0x0,0x0,0x0,0x80000000,0x0,0x0,0x0));
239  return Packet2cd(_mm256_xor_pd(a.v,mask));
240 }
241 
243 {
244  __m256d tmp1 = _mm256_shuffle_pd(a.v,a.v,0x0);
245  __m256d even = _mm256_mul_pd(tmp1, b.v);
246  __m256d tmp2 = _mm256_shuffle_pd(a.v,a.v,0xF);
247  __m256d tmp3 = _mm256_shuffle_pd(b.v,b.v,0x5);
248  __m256d odd = _mm256_mul_pd(tmp2, tmp3);
249  return Packet2cd(_mm256_addsub_pd(even, odd));
250 }
251 
252 template <>
254  __m256d eq = _mm256_cmp_pd(a.v, b.v, _CMP_EQ_OQ);
255  return Packet2cd(pand(eq, _mm256_permute_pd(eq, 0x5)));
256 }
257 
259 template<> EIGEN_STRONG_INLINE Packet2cd pand <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_and_pd(a.v,b.v)); }
260 template<> EIGEN_STRONG_INLINE Packet2cd por <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_or_pd(a.v,b.v)); }
261 template<> EIGEN_STRONG_INLINE Packet2cd pxor <Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_xor_pd(a.v,b.v)); }
262 template<> EIGEN_STRONG_INLINE Packet2cd pandnot<Packet2cd>(const Packet2cd& a, const Packet2cd& b) { return Packet2cd(_mm256_andnot_pd(b.v,a.v)); }
263 
264 template<> EIGEN_STRONG_INLINE Packet2cd pload <Packet2cd>(const std::complex<double>* from)
265 { EIGEN_DEBUG_ALIGNED_LOAD return Packet2cd(pload<Packet4d>((const double*)from)); }
266 template<> EIGEN_STRONG_INLINE Packet2cd ploadu<Packet2cd>(const std::complex<double>* from)
267 { EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cd(ploadu<Packet4d>((const double*)from)); }
268 
269 template<> EIGEN_STRONG_INLINE Packet2cd pset1<Packet2cd>(const std::complex<double>& from)
270 {
271  // in case casting to a __m128d* is really not safe, then we can still fallback to this version: (much slower though)
272 // return Packet2cd(_mm256_loadu2_m128d((const double*)&from,(const double*)&from));
273  return Packet2cd(_mm256_broadcast_pd((const __m128d*)(const void*)&from));
274 }
275 
276 template<> EIGEN_STRONG_INLINE Packet2cd ploaddup<Packet2cd>(const std::complex<double>* from) { return pset1<Packet2cd>(*from); }
277 
278 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); }
279 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); }
280 
281 template<> EIGEN_DEVICE_FUNC inline Packet2cd pgather<std::complex<double>, Packet2cd>(const std::complex<double>* from, Index stride)
282 {
283  return Packet2cd(_mm256_set_pd(std::imag(from[1*stride]), std::real(from[1*stride]),
284  std::imag(from[0*stride]), std::real(from[0*stride])));
285 }
286 
287 template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet2cd>(std::complex<double>* to, const Packet2cd& from, Index stride)
288 {
289  __m128d low = _mm256_extractf128_pd(from.v, 0);
290  to[stride*0] = std::complex<double>(_mm_cvtsd_f64(low), _mm_cvtsd_f64(_mm_shuffle_pd(low, low, 1)));
291  __m128d high = _mm256_extractf128_pd(from.v, 1);
292  to[stride*1] = std::complex<double>(_mm_cvtsd_f64(high), _mm_cvtsd_f64(_mm_shuffle_pd(high, high, 1)));
293 }
294 
295 template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet2cd>(const Packet2cd& a)
296 {
297  __m128d low = _mm256_extractf128_pd(a.v, 0);
298  EIGEN_ALIGN16 double res[2];
299  _mm_store_pd(res, low);
300  return std::complex<double>(res[0],res[1]);
301 }
302 
304  __m256d result = _mm256_permute2f128_pd(a.v, a.v, 1);
305  return Packet2cd(result);
306 }
307 
308 template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet2cd>(const Packet2cd& a)
309 {
310  return predux(padd(Packet1cd(_mm256_extractf128_pd(a.v,0)),
311  Packet1cd(_mm256_extractf128_pd(a.v,1))));
312 }
313 
314 template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet2cd>(const Packet2cd& a)
315 {
316  return predux(pmul(Packet1cd(_mm256_extractf128_pd(a.v,0)),
317  Packet1cd(_mm256_extractf128_pd(a.v,1))));
318 }
319 
321 
323 {
324  Packet2cd num = pmul(a, pconj(b));
325  __m256d tmp = _mm256_mul_pd(b.v, b.v);
326  __m256d denom = _mm256_hadd_pd(tmp, tmp);
327  return Packet2cd(_mm256_div_pd(num.v, denom));
328 }
329 
331 {
332  return Packet2cd(_mm256_shuffle_pd(x.v, x.v, 0x5));
333 }
334 
335 EIGEN_DEVICE_FUNC inline void
337  __m256d P0 = _mm256_castps_pd(kernel.packet[0].v);
338  __m256d P1 = _mm256_castps_pd(kernel.packet[1].v);
339  __m256d P2 = _mm256_castps_pd(kernel.packet[2].v);
340  __m256d P3 = _mm256_castps_pd(kernel.packet[3].v);
341 
342  __m256d T0 = _mm256_shuffle_pd(P0, P1, 15);
343  __m256d T1 = _mm256_shuffle_pd(P0, P1, 0);
344  __m256d T2 = _mm256_shuffle_pd(P2, P3, 15);
345  __m256d T3 = _mm256_shuffle_pd(P2, P3, 0);
346 
347  kernel.packet[1].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T0, T2, 32));
348  kernel.packet[3].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T0, T2, 49));
349  kernel.packet[0].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T1, T3, 32));
350  kernel.packet[2].v = _mm256_castpd_ps(_mm256_permute2f128_pd(T1, T3, 49));
351 }
352 
353 EIGEN_DEVICE_FUNC inline void
355  __m256d tmp = _mm256_permute2f128_pd(kernel.packet[0].v, kernel.packet[1].v, 0+(2<<4));
356  kernel.packet[1].v = _mm256_permute2f128_pd(kernel.packet[0].v, kernel.packet[1].v, 1+(3<<4));
357  kernel.packet[0].v = tmp;
358 }
359 
361  return psqrt_complex<Packet2cd>(a);
362 }
363 
365  return psqrt_complex<Packet4cf>(a);
366 }
367 
368 } // end namespace internal
369 
370 } // end namespace Eigen
371 
372 #endif // EIGEN_COMPLEX_AVX_H
Eigen::internal::ploadu< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd ploadu< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:266
Eigen::internal::Packet4d
__m256d Packet4d
Definition: AVX/PacketMath.h:33
Eigen::internal::pcmp_eq
EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:231
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::unpacket_traits< Packet4cf >::as_real
Packet8f as_real
Definition: AVX/Complex.h:54
Eigen::internal::packet_traits< std::complex< float > >::half
Packet2cf half
Definition: AVX/Complex.h:29
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::padd< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd padd< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:233
Eigen::internal::psqrt< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd psqrt< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:360
Eigen::internal::PacketBlock
Definition: GenericPacketMath.h:1014
Eigen::internal::unpacket_traits< Packet2cd >::as_real
Packet4d as_real
Definition: AVX/Complex.h:223
Eigen::internal::ploaddup< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd ploaddup< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:276
b
Scalar * b
Definition: benchVecAdd.cpp:17
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
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::packet_traits
Definition: GenericPacketMath.h:106
Eigen::internal::preverse
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
Definition: AltiVec/Complex.h:184
Eigen::internal::predux_mul
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_mul(const Packet &a)
Definition: GenericPacketMath.h:882
Eigen::internal::ptrue< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf ptrue< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:90
Eigen::internal::PacketBlock::packet
Packet packet[N]
Definition: GenericPacketMath.h:1018
T3
static const Pose3 T3(Rot3::Rodrigues(-90, 0, 0), Point3(1, 2, 3))
Eigen::internal::unpacket_traits< Packet2cd >::half
Packet1cd half
Definition: AVX/Complex.h:222
real
float real
Definition: datatypes.h:10
Eigen::internal::packet_traits::HasMin
@ HasMin
Definition: GenericPacketMath.h:123
Eigen::internal::pload< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pload< Packet2cd >(const std::complex< double > *from)
Definition: AVX/Complex.h:264
Eigen::internal::pdiv
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:244
Eigen::internal::por< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd por< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:260
Eigen::internal::pconj
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition: AltiVec/Complex.h:167
Eigen::internal::pandnot< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pandnot< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:262
Eigen::internal::pxor< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pxor< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:261
res
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
Eigen::internal::predux< Packet2cd >
EIGEN_STRONG_INLINE std::complex< double > predux< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:308
Eigen::internal::pxor< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pxor< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:93
Eigen::internal::unpacket_traits::vectorizable
@ vectorizable
Definition: GenericPacketMath.h:140
Eigen::internal::default_packet_traits
Definition: GenericPacketMath.h:42
Eigen::internal::psub< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd psub< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:234
result
Values result
Definition: OdometryOptimize.cpp:8
P3
static double P3[]
Definition: jv.c:563
Eigen::internal::pandnot< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pandnot< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:94
Eigen::internal::ptrue< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd ptrue< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:258
Eigen::internal::ploadu< Packet4d >
EIGEN_STRONG_INLINE Packet4d ploadu< Packet4d >(const double *from)
Definition: AVX/PacketMath.h:582
Eigen::internal::packet_traits::HasHalfPacket
@ HasHalfPacket
Definition: GenericPacketMath.h:114
Eigen::internal::pfirst< Packet4cf >
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:140
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< Packet4d >
EIGEN_STRONG_INLINE Packet4d pload< Packet4d >(const double *from)
Definition: AVX/PacketMath.h:578
Eigen::internal::predux_mul< Packet4cf >
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:164
Eigen::internal::unpacket_traits::size
@ size
Definition: GenericPacketMath.h:138
Eigen::internal::psub< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf psub< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:65
Eigen::internal::unpacket_traits::alignment
@ alignment
Definition: GenericPacketMath.h:139
Eigen::internal::packet_traits< std::complex< float > >::type
Packet4cf type
Definition: AVX/Complex.h:28
x1
Pose3 x1
Definition: testPose3.cpp:663
Eigen::internal::packet_traits::AlignedOnScalar
@ AlignedOnScalar
Definition: GenericPacketMath.h:113
P1
static double P1[]
Definition: jv.c:552
Eigen::internal::pset1< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pset1< Packet4cf >(const std::complex< float > &from)
Definition: AVX/Complex.h:100
Eigen::internal::pnegate
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
Definition: AltiVec/Complex.h:166
Eigen::numext::real_ref
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) >::type real_ref(const Scalar &x)
Definition: Eigen/src/Core/MathFunctions.h:1239
Eigen::internal::unpacket_traits
Definition: GenericPacketMath.h:132
Eigen::internal::Packet4cf::Packet4cf
EIGEN_STRONG_INLINE Packet4cf(const __m256 &a)
Definition: AVX/Complex.h:21
Eigen::internal::ptranspose
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
Definition: AltiVec/Complex.h:224
Eigen::internal::Packet4cf
Definition: AVX/Complex.h:18
Eigen::internal::Packet2cf
Definition: AltiVec/Complex.h:30
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::predux_mul< Packet2cd >
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:314
x0
static Symbol x0('x', 0)
Eigen::internal::pcplxflip< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pcplxflip< Packet4cf >(const Packet4cf &x)
Definition: AVX/Complex.h:181
Eigen::internal::unpacket_traits< Packet2cd >::type
std::complex< double > type
Definition: AVX/Complex.h:221
Eigen::internal::Packet2cd::v
__m256d v
Definition: AVX/Complex.h:191
x5
static string x5("x5")
Eigen::internal::default_packet_traits::HasSqrt
@ HasSqrt
Definition: GenericPacketMath.h:66
Eigen::internal::pload< Packet8f >
EIGEN_STRONG_INLINE Packet8f pload< Packet8f >(const float *from)
Definition: AVX/PacketMath.h:577
Eigen::internal::pand
EIGEN_STRONG_INLINE Packet8h pand(const Packet8h &a, const Packet8h &b)
Definition: AVX/PacketMath.h:1050
imag
const EIGEN_DEVICE_FUNC ImagReturnType imag() const
Definition: CommonCwiseUnaryOps.h:109
Eigen::internal::ploaddup< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf ploaddup< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:105
T2
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
Eigen::internal::unpacket_traits< Packet4cf >::half
Packet2cf half
Definition: AVX/Complex.h:53
Eigen::internal::pand< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pand< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:91
Eigen::internal::pstore
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:696
Eigen::internal::unpacket_traits::masked_load_available
@ masked_load_available
Definition: GenericPacketMath.h:141
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
Eigen::internal::packet_traits::HasAbs2
@ HasAbs2
Definition: GenericPacketMath.h:122
Eigen::internal::predux
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
Definition: GenericPacketMath.h:875
Eigen::internal::packet_traits< std::complex< double > >::half
Packet1cd half
Definition: AVX/Complex.h:198
Eigen::internal::pmul
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:237
EIGEN_DEBUG_UNALIGNED_LOAD
#define EIGEN_DEBUG_UNALIGNED_LOAD
Definition: GenericPacketMath.h:31
Eigen::internal::pcplxflip< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pcplxflip< Packet2cd >(const Packet2cd &x)
Definition: AVX/Complex.h:330
Eigen::internal::unpacket_traits< Packet4cf >::type
std::complex< float > type
Definition: AVX/Complex.h:52
Eigen::internal::ploadu< Packet8f >
EIGEN_STRONG_INLINE Packet8f ploadu< Packet8f >(const float *from)
Definition: AVX/PacketMath.h:581
std
Definition: BFloat16.h:88
Eigen::internal::pload< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pload< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:96
Eigen::internal::packet_traits::HasAdd
@ HasAdd
Definition: GenericPacketMath.h:117
Eigen::internal::pfirst< Packet2cd >
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet2cd >(const Packet2cd &a)
Definition: AVX/Complex.h:295
Eigen::internal::psqrt< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf psqrt< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:364
Eigen::internal::packet_traits::HasMax
@ HasMax
Definition: GenericPacketMath.h:124
Eigen::internal::padd
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:215
Eigen::internal::pmul< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf pmul< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:76
Eigen::internal::ploadu< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf ploadu< Packet4cf >(const std::complex< float > *from)
Definition: AVX/Complex.h:97
Eigen::internal::packet_traits< std::complex< double > >::type
Packet2cd type
Definition: AVX/Complex.h:197
Eigen::internal::packet_traits::HasNegate
@ HasNegate
Definition: GenericPacketMath.h:120
Eigen::internal::default_packet_traits::HasDiv
@ HasDiv
Definition: GenericPacketMath.h:65
Eigen::internal::Packet2cd::Packet2cd
EIGEN_STRONG_INLINE Packet2cd(const __m256d &a)
Definition: AVX/Complex.h:190
Eigen::internal::Packet2cd::Packet2cd
EIGEN_STRONG_INLINE Packet2cd()
Definition: AVX/Complex.h:189
EIGEN_ALIGN16
#define EIGEN_ALIGN16
Definition: ConfigureVectorization.h:153
internal
Definition: BandTriangularSolver.h:13
Eigen::internal::por< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf por< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:92
Eigen::internal::pset1< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pset1< Packet2cd >(const std::complex< double > &from)
Definition: AVX/Complex.h:269
T1
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
Eigen::internal::Packet4cf::v
__m256 v
Definition: AVX/Complex.h:22
P0
static double P0[5]
Definition: ndtri.c:59
Eigen::Aligned32
@ Aligned32
Definition: Constants.h:236
Eigen::internal::Packet4cf::Packet4cf
EIGEN_STRONG_INLINE Packet4cf()
Definition: AVX/Complex.h:20
Eigen::internal::Packet2cd
Definition: AVX/Complex.h:187
Eigen::internal::Packet1cd
Definition: MSA/Complex.h:341
Eigen::internal::packet_traits::HasMul
@ HasMul
Definition: GenericPacketMath.h:119
Eigen::internal::predux< Packet4cf >
EIGEN_STRONG_INLINE std::complex< float > predux< Packet4cf >(const Packet4cf &a)
Definition: AVX/Complex.h:158
Eigen::internal::packet_traits::Vectorizable
@ Vectorizable
Definition: GenericPacketMath.h:111
Eigen::internal::pand< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pand< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:259
EIGEN_DEBUG_ALIGNED_STORE
#define EIGEN_DEBUG_ALIGNED_STORE
Definition: GenericPacketMath.h:35
Eigen::internal::padd< Packet4cf >
EIGEN_STRONG_INLINE Packet4cf padd< Packet4cf >(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:64
Eigen::internal::ptrue
EIGEN_STRONG_INLINE Packet8h ptrue(const Packet8h &a)
Definition: AVX/PacketMath.h:978
Eigen::internal::Packet8f
__m256 Packet8f
Definition: AVX/PacketMath.h:31
P2
static double P2[]
Definition: jv.c:557
complex
Definition: datatypes.h:12
Eigen::internal::packet_traits::HasSetLinear
@ HasSetLinear
Definition: GenericPacketMath.h:126
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::internal::pmul< Packet2cd >
EIGEN_STRONG_INLINE Packet2cd pmul< Packet2cd >(const Packet2cd &a, const Packet2cd &b)
Definition: AVX/Complex.h:242


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:00