TR-mbed 1.0
Loading...
Searching...
No Matches
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-2016 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_COMPLEX32_ALTIVEC_H
12#define EIGEN_COMPLEX32_ALTIVEC_H
13
14namespace Eigen {
15
16namespace internal {
17
18static Packet4ui p4ui_CONJ_XOR = vec_mergeh((Packet4ui)p4i_ZERO, (Packet4ui)p4f_MZERO);//{ 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
19#ifdef __VSX__
20#if defined(_BIG_ENDIAN)
21static Packet2ul p2ul_CONJ_XOR1 = (Packet2ul) vec_sld((Packet4ui) p2d_MZERO, (Packet4ui) p2l_ZERO, 8);//{ 0x8000000000000000, 0x0000000000000000 };
22static Packet2ul p2ul_CONJ_XOR2 = (Packet2ul) vec_sld((Packet4ui) p2l_ZERO, (Packet4ui) p2d_MZERO, 8);//{ 0x8000000000000000, 0x0000000000000000 };
23#else
24static Packet2ul p2ul_CONJ_XOR1 = (Packet2ul) vec_sld((Packet4ui) p2l_ZERO, (Packet4ui) p2d_MZERO, 8);//{ 0x8000000000000000, 0x0000000000000000 };
25static Packet2ul p2ul_CONJ_XOR2 = (Packet2ul) vec_sld((Packet4ui) p2d_MZERO, (Packet4ui) p2l_ZERO, 8);//{ 0x8000000000000000, 0x0000000000000000 };
26#endif
27#endif
28
29//---------- float ----------
31{
33 EIGEN_STRONG_INLINE explicit Packet2cf(const Packet4f& a) : v(a) {}
34
36 {
37 Packet4f v1, v2;
38
39 // Permute and multiply the real parts of a and b
40 v1 = vec_perm(a.v, a.v, p16uc_PSET32_WODD);
41 // Get the imaginary parts of a
42 v2 = vec_perm(a.v, a.v, p16uc_PSET32_WEVEN);
43 // multiply a_re * b
44 v1 = vec_madd(v1, b.v, p4f_ZERO);
45 // multiply a_im * b and get the conjugate result
46 v2 = vec_madd(v2, b.v, p4f_ZERO);
47 v2 = reinterpret_cast<Packet4f>(pxor(v2, reinterpret_cast<Packet4f>(p4ui_CONJ_XOR)));
48 // permute back to a proper order
49 v2 = vec_perm(v2, v2, p16uc_COMPLEX32_REV);
50
51 return Packet2cf(padd<Packet4f>(v1, v2));
52 }
53
55 v = pmul(Packet2cf(*this), b).v;
56 return *this;
57 }
59 return Packet2cf(*this) *= b;
60 }
61
63 v = padd(v, b.v);
64 return *this;
65 }
67 return Packet2cf(*this) += b;
68 }
70 v = psub(v, b.v);
71 return *this;
72 }
74 return Packet2cf(*this) -= b;
75 }
77 return Packet2cf(-v);
78 }
79
81};
82
83template<> struct packet_traits<std::complex<float> > : default_packet_traits
84{
85 typedef Packet2cf type;
86 typedef Packet2cf half;
88 enum {
91 size = 2,
93
94 HasAdd = 1,
95 HasSub = 1,
96 HasMul = 1,
97 HasDiv = 1,
99 HasAbs = 0,
103#ifdef __VSX__
104 HasBlend = 1,
105#endif
106 HasSetLinear = 0
107 };
108};
109
110template<> struct unpacket_traits<Packet2cf> { typedef std::complex<float> type; enum {size=2, alignment=Aligned16, vectorizable=true, masked_load_available=false, masked_store_available=false}; typedef Packet2cf half; typedef Packet4f as_real; };
111
112template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<float>& from)
113{
115 if((std::ptrdiff_t(&from) % 16) == 0)
116 res.v = pload<Packet4f>((const float *)&from);
117 else
118 res.v = ploadu<Packet4f>((const float *)&from);
119 res.v = vec_perm(res.v, res.v, p16uc_PSET64_HI);
120 return res;
121}
122
123template<> EIGEN_STRONG_INLINE Packet2cf pload<Packet2cf>(const std::complex<float>* from) { return Packet2cf(pload<Packet4f>((const float *) from)); }
124template<> EIGEN_STRONG_INLINE Packet2cf ploadu<Packet2cf>(const std::complex<float>* from) { return Packet2cf(ploadu<Packet4f>((const float*) from)); }
125template<> EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(const std::complex<float>* from) { return pset1<Packet2cf>(*from); }
126
127template<> EIGEN_STRONG_INLINE void pstore <std::complex<float> >(std::complex<float> * to, const Packet2cf& from) { pstore((float*)to, from.v); }
128template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float> * to, const Packet2cf& from) { pstoreu((float*)to, from.v); }
129
130EIGEN_STRONG_INLINE Packet2cf pload2(const std::complex<float>* from0, const std::complex<float>* from1)
131{
133#ifdef __VSX__
134 __asm__ ("lxsdx %x0,%y1" : "=wa" (res0) : "Z" (*from0));
135 __asm__ ("lxsdx %x0,%y1" : "=wa" (res1) : "Z" (*from1));
136#ifdef _BIG_ENDIAN
137 __asm__ ("xxpermdi %x0, %x1, %x2, 0" : "=wa" (res0) : "wa" (res0), "wa" (res1));
138#else
139 __asm__ ("xxpermdi %x0, %x2, %x1, 0" : "=wa" (res0) : "wa" (res0), "wa" (res1));
140#endif
141#else
142 *reinterpret_cast<std::complex<float> *>(&res0) = *from0;
143 *reinterpret_cast<std::complex<float> *>(&res1) = *from1;
144 res0 = vec_perm(res0, res1, p16uc_TRANSPOSE64_HI);
145#endif
146 return Packet2cf(res0);
147}
148
149template<> EIGEN_DEVICE_FUNC inline Packet2cf pgather<std::complex<float>, Packet2cf>(const std::complex<float>* from, Index stride)
150{
151 EIGEN_ALIGN16 std::complex<float> af[2];
152 af[0] = from[0*stride];
153 af[1] = from[1*stride];
154 return pload<Packet2cf>(af);
155}
156template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet2cf>(std::complex<float>* to, const Packet2cf& from, Index stride)
157{
158 EIGEN_ALIGN16 std::complex<float> af[2];
159 pstore<std::complex<float> >((std::complex<float> *) af, from);
160 to[0*stride] = af[0];
161 to[1*stride] = af[1];
162}
163
164template<> EIGEN_STRONG_INLINE Packet2cf padd<Packet2cf>(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(a.v + b.v); }
165template<> EIGEN_STRONG_INLINE Packet2cf psub<Packet2cf>(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(a.v - b.v); }
167template<> EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf& a) { return Packet2cf(pxor<Packet4f>(a.v, reinterpret_cast<Packet4f>(p4ui_CONJ_XOR))); }
168
173
174template<> EIGEN_STRONG_INLINE void prefetch<std::complex<float> >(const std::complex<float> * addr) { EIGEN_PPC_PREFETCH(addr); }
175
176template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(const Packet2cf& a)
177{
178 EIGEN_ALIGN16 std::complex<float> res[2];
179 pstore((float *)&res, a.v);
180
181 return res[0];
182}
183
185{
187 rev_a = vec_perm(a.v, a.v, p16uc_COMPLEX32_REV2);
188 return Packet2cf(rev_a);
189}
190
191template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet2cf>(const Packet2cf& a)
192{
193 Packet4f b;
194 b = vec_sld(a.v, a.v, 8);
195 b = padd<Packet4f>(a.v, b);
197}
198
199template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet2cf>(const Packet2cf& a)
200{
201 Packet4f b;
203 b = vec_sld(a.v, a.v, 8);
205
206 return pfirst<Packet2cf>(prod);
207}
208
210
212{
213 // TODO optimize it for AltiVec
214 Packet2cf res = pmul(a, pconj(b));
215 Packet4f s = pmul<Packet4f>(b.v, b.v);
216 return Packet2cf(pdiv(res.v, padd<Packet4f>(s, vec_perm(s, s, p16uc_COMPLEX32_REV))));
217}
218
220{
221 return Packet2cf(vec_perm(x.v, x.v, p16uc_COMPLEX32_REV));
222}
223
225{
226 Packet4f tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
227 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
228 kernel.packet[0].v = tmp;
229}
230
232 Packet4f eq = reinterpret_cast<Packet4f>(vec_cmpeq(a.v,b.v));
233 return Packet2cf(vec_and(eq, vec_perm(eq, eq, p16uc_COMPLEX32_REV)));
234}
235
236#ifdef __VSX__
237template<> EIGEN_STRONG_INLINE Packet2cf pblend(const Selector<2>& ifPacket, const Packet2cf& thenPacket, const Packet2cf& elsePacket) {
238 Packet2cf result;
239 result.v = reinterpret_cast<Packet4f>(pblend<Packet2d>(ifPacket, reinterpret_cast<Packet2d>(thenPacket.v), reinterpret_cast<Packet2d>(elsePacket.v)));
240 return result;
241}
242#endif
243
248
249//---------- double ----------
250#ifdef __VSX__
251struct Packet1cd
252{
254 EIGEN_STRONG_INLINE explicit Packet1cd(const Packet2d& a) : v(a) {}
255
257 {
258 Packet2d a_re, a_im, v1, v2;
259
260 // Permute and multiply the real parts of a and b
261 a_re = vec_perm(a.v, a.v, p16uc_PSET64_HI);
262 // Get the imaginary parts of a
263 a_im = vec_perm(a.v, a.v, p16uc_PSET64_LO);
264 // multiply a_re * b
265 v1 = vec_madd(a_re, b.v, p2d_ZERO);
266 // multiply a_im * b and get the conjugate result
267 v2 = vec_madd(a_im, b.v, p2d_ZERO);
268 v2 = reinterpret_cast<Packet2d>(vec_sld(reinterpret_cast<Packet4ui>(v2), reinterpret_cast<Packet4ui>(v2), 8));
269 v2 = pxor(v2, reinterpret_cast<Packet2d>(p2ul_CONJ_XOR1));
270
271 return Packet1cd(padd<Packet2d>(v1, v2));
272 }
273
275 v = pmul(Packet1cd(*this), b).v;
276 return *this;
277 }
279 return Packet1cd(*this) *= b;
280 }
281
283 v = padd(v, b.v);
284 return *this;
285 }
287 return Packet1cd(*this) += b;
288 }
290 v = psub(v, b.v);
291 return *this;
292 }
294 return Packet1cd(*this) -= b;
295 }
297 return Packet1cd(-v);
298 }
299
300 Packet2d v;
301};
302
303template<> struct packet_traits<std::complex<double> > : default_packet_traits
304{
305 typedef Packet1cd type;
306 typedef Packet1cd half;
307 typedef Packet2d as_real;
308 enum {
309 Vectorizable = 1,
310 AlignedOnScalar = 0,
311 size = 1,
312 HasHalfPacket = 0,
313
314 HasAdd = 1,
315 HasSub = 1,
316 HasMul = 1,
317 HasDiv = 1,
318 HasNegate = 1,
319 HasAbs = 0,
320 HasAbs2 = 0,
321 HasMin = 0,
322 HasMax = 0,
323 HasSetLinear = 0
324 };
325};
326
327template<> struct unpacket_traits<Packet1cd> { typedef std::complex<double> type; enum {size=1, alignment=Aligned16, vectorizable=true, masked_load_available=false, masked_store_available=false}; typedef Packet1cd half; typedef Packet2d as_real; };
328
329template<> EIGEN_STRONG_INLINE Packet1cd pload <Packet1cd>(const std::complex<double>* from) { return Packet1cd(pload<Packet2d>((const double*)from)); }
330template<> EIGEN_STRONG_INLINE Packet1cd ploadu<Packet1cd>(const std::complex<double>* from) { return Packet1cd(ploadu<Packet2d>((const double*)from)); }
331template<> EIGEN_STRONG_INLINE void pstore <std::complex<double> >(std::complex<double> * to, const Packet1cd& from) { pstore((double*)to, from.v); }
332template<> EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<double> * to, const Packet1cd& from) { pstoreu((double*)to, from.v); }
333
334template<> EIGEN_STRONG_INLINE Packet1cd pset1<Packet1cd>(const std::complex<double>& from)
335{ /* here we really have to use unaligned loads :( */ return ploadu<Packet1cd>(&from); }
336
337template<> EIGEN_DEVICE_FUNC inline Packet1cd pgather<std::complex<double>, Packet1cd>(const std::complex<double>* from, Index)
338{
339 return pload<Packet1cd>(from);
340}
341template<> EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet1cd>(std::complex<double>* to, const Packet1cd& from, Index)
342{
343 pstore<std::complex<double> >(to, from);
344}
345
346template<> EIGEN_STRONG_INLINE Packet1cd padd<Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(a.v + b.v); }
347template<> EIGEN_STRONG_INLINE Packet1cd psub<Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(a.v - b.v); }
348template<> EIGEN_STRONG_INLINE Packet1cd pnegate(const Packet1cd& a) { return Packet1cd(pnegate(Packet2d(a.v))); }
349template<> EIGEN_STRONG_INLINE Packet1cd pconj(const Packet1cd& a) { return Packet1cd(pxor(a.v, reinterpret_cast<Packet2d>(p2ul_CONJ_XOR2))); }
350
351template<> EIGEN_STRONG_INLINE Packet1cd pand <Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(pand(a.v,b.v)); }
352template<> EIGEN_STRONG_INLINE Packet1cd por <Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(por(a.v,b.v)); }
353template<> EIGEN_STRONG_INLINE Packet1cd pxor <Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(pxor(a.v,b.v)); }
354template<> EIGEN_STRONG_INLINE Packet1cd pandnot<Packet1cd>(const Packet1cd& a, const Packet1cd& b) { return Packet1cd(pandnot(a.v, b.v)); }
355
356template<> EIGEN_STRONG_INLINE Packet1cd ploaddup<Packet1cd>(const std::complex<double>* from) { return pset1<Packet1cd>(*from); }
357
358template<> EIGEN_STRONG_INLINE void prefetch<std::complex<double> >(const std::complex<double> * addr) { EIGEN_PPC_PREFETCH(addr); }
359
360template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet1cd>(const Packet1cd& a)
361{
362 EIGEN_ALIGN16 std::complex<double> res[2];
363 pstore<std::complex<double> >(res, a);
364
365 return res[0];
366}
367
368template<> EIGEN_STRONG_INLINE Packet1cd preverse(const Packet1cd& a) { return a; }
369
370template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
371
372template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet1cd>(const Packet1cd& a) { return pfirst(a); }
373
375
376template<> EIGEN_STRONG_INLINE Packet1cd pdiv<Packet1cd>(const Packet1cd& a, const Packet1cd& b)
377{
378 // TODO optimize it for AltiVec
379 Packet1cd res = pmul(a,pconj(b));
380 Packet2d s = pmul<Packet2d>(b.v, b.v);
381 return Packet1cd(pdiv(res.v, padd<Packet2d>(s, vec_perm(s, s, p16uc_REVERSE64))));
382}
383
384EIGEN_STRONG_INLINE Packet1cd pcplxflip/*<Packet1cd>*/(const Packet1cd& x)
385{
386 return Packet1cd(preverse(Packet2d(x.v)));
387}
388
389EIGEN_STRONG_INLINE void ptranspose(PacketBlock<Packet1cd,2>& kernel)
390{
391 Packet2d tmp = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_HI);
392 kernel.packet[1].v = vec_perm(kernel.packet[0].v, kernel.packet[1].v, p16uc_TRANSPOSE64_LO);
393 kernel.packet[0].v = tmp;
394}
395
396template<> EIGEN_STRONG_INLINE Packet1cd pcmp_eq(const Packet1cd& a, const Packet1cd& b) {
397 // Compare real and imaginary parts of a and b to get the mask vector:
398 // [re(a)==re(b), im(a)==im(b)]
399 Packet2d eq = reinterpret_cast<Packet2d>(vec_cmpeq(a.v,b.v));
400 // Swap real/imag elements in the mask in to get:
401 // [im(a)==im(b), re(a)==re(b)]
402 Packet2d eq_swapped = reinterpret_cast<Packet2d>(vec_sld(reinterpret_cast<Packet4ui>(eq), reinterpret_cast<Packet4ui>(eq), 8));
403 // Return re(a)==re(b) & im(a)==im(b) by computing bitwise AND of eq and eq_swapped
404 return Packet1cd(vec_and(eq, eq_swapped));
405}
406
407template<> EIGEN_STRONG_INLINE Packet1cd psqrt<Packet1cd>(const Packet1cd& a)
408{
409 return psqrt_complex<Packet1cd>(a);
410}
411
412#endif // __VSX__
413} // end namespace internal
414
415} // end namespace Eigen
416
417#endif // EIGEN_COMPLEX32_ALTIVEC_H
#define EIGEN_PPC_PREFETCH(ADDR)
Definition PacketMath.h:147
ArrayXXi a
Definition Array_initializer_list_23_cxx11.cpp:1
#define EIGEN_ALIGN16
Definition ConfigureVectorization.h:153
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL)
Definition ConjHelper.h:14
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition PartialRedux_count.cpp:3
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9;Map< RowVectorXf > v1(M1.data(), M1.size())
Map< RowVectorXf > v2(M2.data(), M2.size())
Scalar * b
Definition benchVecAdd.cpp:17
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
@ Aligned16
Definition Constants.h:235
RealScalar s
Definition level1_cplx_impl.h:126
v2f64 Packet2d
Definition PacketMath.h:820
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition Complex.h:167
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet2cf >(const Packet2cf &a)
Definition Complex.h:199
EIGEN_STRONG_INLINE std::complex< float > predux< Packet2cf >(const Packet2cf &a)
Definition Complex.h:191
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
Definition GenericPacketMath.h:215
EIGEN_STRONG_INLINE Packet2d padd< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition PacketMath.h:880
EIGEN_STRONG_INLINE Packet2cf psqrt< Packet2cf >(const Packet2cf &a)
Definition Complex.h:244
EIGEN_STRONG_INLINE Packet4f padd< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition PacketMath.h:774
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet1cd >(const Packet1cd &a)
Definition Complex.h:605
EIGEN_STRONG_INLINE Packet2cf pandnot< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:172
EIGEN_STRONG_INLINE Packet1cd psqrt< Packet1cd >(const Packet1cd &a)
Definition Complex.h:340
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
Definition Complex.h:224
EIGEN_STRONG_INLINE Packet2cf ploaddup< Packet2cf >(const std::complex< float > *from)
Definition Complex.h:125
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
Definition GenericPacketMath.h:244
EIGEN_STRONG_INLINE Packet2cf pmul< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:173
EIGEN_STRONG_INLINE Packet4f pmul< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition PacketMath.h:795
EIGEN_STRONG_INLINE Packet4i pblend(const Selector< 4 > &ifPacket, const Packet4i &thenPacket, const Packet4i &elsePacket)
Definition PacketMath.h:2107
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet2cf >(const Packet2cf &a)
Definition Complex.h:176
EIGEN_STRONG_INLINE Packet4f pload< Packet4f >(const float *from)
Definition PacketMath.h:443
EIGEN_STRONG_INLINE Packet1cd ploadu< Packet1cd >(const std::complex< double > *from)
Definition Complex.h:456
EIGEN_STRONG_INLINE Packet2cf por< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:170
EIGEN_STRONG_INLINE Packet8h por(const Packet8h &a, const Packet8h &b)
Definition PacketMath.h:1042
EIGEN_STRONG_INLINE Packet2cf pset1< Packet2cf >(const std::complex< float > &from)
Definition Complex.h:112
__vector unsigned int Packet4ui
Definition PacketMath.h:32
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
Definition Complex.h:184
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition GenericPacketMath.h:237
EIGEN_STRONG_INLINE Packet1cd pcplxflip(const Packet1cd &x)
Definition Complex.h:620
EIGEN_STRONG_INLINE Packet8h pandnot(const Packet8h &a, const Packet8h &b)
Definition PacketMath.h:1053
EIGEN_STRONG_INLINE Packet2d pload< Packet2d >(const double *from)
Definition PacketMath.h:967
EIGEN_STRONG_INLINE Packet2d pmul< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition PacketMath.h:916
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
Definition Complex.h:166
EIGEN_STRONG_INLINE Packet1cd pxor< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:519
EIGEN_STRONG_INLINE Packet1cd padd< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:470
EIGEN_STRONG_INLINE Packet2cf ploadu< Packet2cf >(const std::complex< float > *from)
Definition Complex.h:124
EIGEN_STRONG_INLINE Packet1cd ploaddup< Packet1cd >(const std::complex< double > *from)
Definition Complex.h:533
EIGEN_STRONG_INLINE Packet2cf pload< Packet2cf >(const std::complex< float > *from)
Definition Complex.h:123
EIGEN_STRONG_INLINE bfloat16 pfirst(const Packet8bf &a)
Definition PacketMath.h:1429
EIGEN_STRONG_INLINE std::complex< double > predux< Packet1cd >(const Packet1cd &a)
Definition Complex.h:598
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
Definition GenericPacketMath.h:696
EIGEN_STRONG_INLINE Packet2d ploadu< Packet2d >(const double *from)
Definition PacketMath.h:1004
EIGEN_STRONG_INLINE Packet1cd pload< Packet1cd >(const std::complex< double > *from)
Definition Complex.h:449
EIGEN_STRONG_INLINE Packet2cf pcplxflip< Packet2cf >(const Packet2cf &x)
Definition Complex.h:219
EIGEN_STRONG_INLINE Packet1cd pand< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:505
EIGEN_STRONG_INLINE Packet2cf pand< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:169
EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:231
EIGEN_STRONG_INLINE Packet1cd pandnot< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:526
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
Definition GenericPacketMath.h:700
EIGEN_STRONG_INLINE Packet2cf pload2(const std::complex< float > *from0, const std::complex< float > *from1)
Definition Complex.h:130
EIGEN_STRONG_INLINE Packet8h pand(const Packet8h &a, const Packet8h &b)
Definition PacketMath.h:1050
EIGEN_STRONG_INLINE Packet8h pxor(const Packet8h &a, const Packet8h &b)
Definition PacketMath.h:1047
EIGEN_STRONG_INLINE Packet2cf pxor< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:171
EIGEN_STRONG_INLINE Packet4f ploadu< Packet4f >(const float *from)
Definition PacketMath.h:968
EIGEN_STRONG_INLINE Packet2cf psub< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:165
EIGEN_DEVICE_FUNC Packet psub(const Packet &a, const Packet &b)
Definition GenericPacketMath.h:222
EIGEN_STRONG_INLINE Packet2cf padd< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:164
EIGEN_STRONG_INLINE Packet1cd por< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:512
__vector float Packet4f
Definition PacketMath.h:30
EIGEN_STRONG_INLINE Packet1cd pset1< Packet1cd >(const std::complex< double > &from)
Definition Complex.h:463
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet1cd >(const Packet1cd &a)
Definition Complex.h:584
EIGEN_STRONG_INLINE Packet1cd pdiv< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:614
v2u64 Packet2ul
Definition PacketMath.h:822
EIGEN_STRONG_INLINE Packet1cd psub< Packet1cd >(const Packet1cd &a, const Packet1cd &b)
Definition Complex.h:477
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const Product< Lhs, Rhs > prod(const Lhs &lhs, const Rhs &rhs)
Definition evaluators.cpp:8
Definition BandTriangularSolver.h:13
Definition BFloat16.h:88
EIGEN_STRONG_INLINE Packet1cd operator-(void) const
Definition Complex.h:406
EIGEN_STRONG_INLINE Packet1cd operator+(const Packet1cd &b) const
Definition Complex.h:386
EIGEN_STRONG_INLINE Packet1cd()
Definition Complex.h:342
EIGEN_STRONG_INLINE Packet1cd & operator+=(const Packet1cd &b)
Definition Complex.h:382
Packet2d v
Definition Complex.h:410
EIGEN_STRONG_INLINE Packet1cd & operator*=(const Packet1cd &b)
Definition Complex.h:360
EIGEN_STRONG_INLINE Packet1cd & operator-=(const Packet1cd &b)
Definition Complex.h:389
EIGEN_STRONG_INLINE Packet1cd operator*(const Packet1cd &b) const
Definition Complex.h:379
Definition Complex.h:31
Packet4f v
Definition Complex.h:80
EIGEN_STRONG_INLINE Packet2cf & operator*=(const Packet2cf &b)
Definition Complex.h:54
EIGEN_STRONG_INLINE Packet2cf operator*(const Packet2cf &b) const
Definition Complex.h:58
EIGEN_STRONG_INLINE Packet2cf operator-(void) const
Definition Complex.h:76
EIGEN_STRONG_INLINE Packet2cf()
Definition Complex.h:32
EIGEN_STRONG_INLINE Packet2cf operator-(const Packet2cf &b) const
Definition Complex.h:73
EIGEN_STRONG_INLINE Packet2cf(const Packet4f &a)
Definition Complex.h:33
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b)
Definition Complex.h:35
EIGEN_STRONG_INLINE Packet2cf & operator+=(const Packet2cf &b)
Definition Complex.h:62
EIGEN_STRONG_INLINE Packet2cf & operator-=(const Packet2cf &b)
Definition Complex.h:69
EIGEN_STRONG_INLINE Packet2cf operator+(const Packet2cf &b) const
Definition Complex.h:66
Definition GenericPacketMath.h:43
@ HasBlend
Definition GenericPacketMath.h:60
@ HasDiv
Definition GenericPacketMath.h:65
Definition GenericPacketMath.h:107
@ HasSub
Definition GenericPacketMath.h:118
@ HasMax
Definition GenericPacketMath.h:124
@ HasNegate
Definition GenericPacketMath.h:120
@ HasMul
Definition GenericPacketMath.h:119
@ HasAdd
Definition GenericPacketMath.h:117
@ HasSetLinear
Definition GenericPacketMath.h:126
@ HasMin
Definition GenericPacketMath.h:123
@ HasAbs2
Definition GenericPacketMath.h:122
@ HasAbs
Definition GenericPacketMath.h:121
T type
Definition GenericPacketMath.h:108
T half
Definition GenericPacketMath.h:109
@ HasHalfPacket
Definition GenericPacketMath.h:114
@ size
Definition GenericPacketMath.h:112
@ AlignedOnScalar
Definition GenericPacketMath.h:113
@ Vectorizable
Definition GenericPacketMath.h:111
Definition ForwardDeclarations.h:17
Definition GenericPacketMath.h:133
T type
Definition GenericPacketMath.h:134
T half
Definition GenericPacketMath.h:135
@ masked_load_available
Definition GenericPacketMath.h:141
@ size
Definition GenericPacketMath.h:138
@ masked_store_available
Definition GenericPacketMath.h:142
@ vectorizable
Definition GenericPacketMath.h:140
@ alignment
Definition GenericPacketMath.h:139
Definition datatypes.h:12