11#ifndef EIGEN_COMPLEX_NEON_H
12#define EIGEN_COMPLEX_NEON_H
18inline uint32x4_t p4ui_CONJ_XOR()
21#if EIGEN_COMP_CLANG || EIGEN_COMP_CASTXML
22 uint32x4_t ret = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
25 static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000, 0x00000000, 0x80000000 };
26 return vld1q_u32( conj_XOR_DATA );
30inline uint32x2_t p2ui_CONJ_XOR()
32 static const uint32_t conj_XOR_DATA[] = { 0x00000000, 0x80000000 };
33 return vld1_u32( conj_XOR_DATA );
47 EIGEN_STRONG_INLINE
explicit Packet2cf(
const Packet4f& a) : v(a) {}
51template<>
struct packet_traits<
std::complex<float> > : default_packet_traits
53 typedef Packet2cf type;
54 typedef Packet1cf half;
77 typedef std::complex<float> type;
85 masked_load_available =
false,
86 masked_store_available =
false
91 typedef std::complex<float> type;
93 typedef Packet4f as_real;
99 masked_load_available =
false,
100 masked_store_available =
false
104template<> EIGEN_STRONG_INLINE Packet1cf pcast<float,Packet1cf>(
const float& a)
105{
return Packet1cf(vset_lane_f32(a, vdup_n_f32(0.f), 0)); }
106template<> EIGEN_STRONG_INLINE Packet2cf pcast<Packet2f,Packet2cf>(
const Packet2f& a)
107{
return Packet2cf(vreinterpretq_f32_u64(vmovl_u32(vreinterpret_u32_f32(a)))); }
109template<> EIGEN_STRONG_INLINE Packet1cf pset1<Packet1cf>(
const std::complex<float>& from)
110{
return Packet1cf(vld1_f32(
reinterpret_cast<const float*
>(&from))); }
111template<> EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(
const std::complex<float>& from)
113 const float32x2_t r64 = vld1_f32(
reinterpret_cast<const float*
>(&from));
114 return Packet2cf(vcombine_f32(r64, r64));
117template<> EIGEN_STRONG_INLINE Packet1cf padd<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
118{
return Packet1cf(padd<Packet2f>(a.v, b.v)); }
119template<> EIGEN_STRONG_INLINE Packet2cf padd<Packet2cf>(
const Packet2cf& a,
const Packet2cf& b)
120{
return Packet2cf(padd<Packet4f>(a.v, b.v)); }
122template<> EIGEN_STRONG_INLINE Packet1cf psub<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
123{
return Packet1cf(psub<Packet2f>(a.v, b.v)); }
124template<> EIGEN_STRONG_INLINE Packet2cf psub<Packet2cf>(
const Packet2cf& a,
const Packet2cf& b)
125{
return Packet2cf(psub<Packet4f>(a.v, b.v)); }
127template<> EIGEN_STRONG_INLINE Packet1cf pnegate(
const Packet1cf& a) {
return Packet1cf(pnegate<Packet2f>(a.v)); }
128template<> EIGEN_STRONG_INLINE Packet2cf pnegate(
const Packet2cf& a) {
return Packet2cf(pnegate<Packet4f>(a.v)); }
130template<> EIGEN_STRONG_INLINE Packet1cf pconj(
const Packet1cf& a)
132 const Packet2ui b = Packet2ui(vreinterpret_u32_f32(a.v));
133 return Packet1cf(vreinterpret_f32_u32(veor_u32(b, p2ui_CONJ_XOR())));
135template<> EIGEN_STRONG_INLINE Packet2cf pconj(
const Packet2cf& a)
137 const Packet4ui b = Packet4ui(vreinterpretq_u32_f32(a.v));
138 return Packet2cf(vreinterpretq_f32_u32(veorq_u32(b, p4ui_CONJ_XOR())));
141template<> EIGEN_STRONG_INLINE Packet1cf pmul<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
146 v1 = vdup_lane_f32(a.v, 0);
148 v2 = vdup_lane_f32(a.v, 1);
150 v1 = vmul_f32(v1, b.v);
152 v2 = vmul_f32(v2, b.v);
154 v2 = vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(v2), p2ui_CONJ_XOR()));
158 return Packet1cf(vadd_f32(v1, v2));
160template<> EIGEN_STRONG_INLINE Packet2cf pmul<Packet2cf>(
const Packet2cf& a,
const Packet2cf& b)
165 v1 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 0), vdup_lane_f32(vget_high_f32(a.v), 0));
167 v2 = vcombine_f32(vdup_lane_f32(vget_low_f32(a.v), 1), vdup_lane_f32(vget_high_f32(a.v), 1));
169 v1 = vmulq_f32(v1, b.v);
171 v2 = vmulq_f32(v2, b.v);
173 v2 = vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(v2), p4ui_CONJ_XOR()));
175 v2 = vrev64q_f32(v2);
177 return Packet2cf(vaddq_f32(v1, v2));
180template<> EIGEN_STRONG_INLINE Packet1cf pcmp_eq(
const Packet1cf& a,
const Packet1cf& b)
184 Packet2f eq = pcmp_eq<Packet2f>(a.v, b.v);
187 Packet2f eq_swapped = vrev64_f32(eq);
189 return Packet1cf(pand<Packet2f>(eq, eq_swapped));
191template<> EIGEN_STRONG_INLINE Packet2cf pcmp_eq(
const Packet2cf& a,
const Packet2cf& b)
195 Packet4f eq = pcmp_eq<Packet4f>(a.v, b.v);
198 Packet4f eq_swapped = vrev64q_f32(eq);
200 return Packet2cf(pand<Packet4f>(eq, eq_swapped));
203template<> EIGEN_STRONG_INLINE Packet1cf pand<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
204{
return Packet1cf(vreinterpret_f32_u32(vand_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
205template<> 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)))); }
208template<> EIGEN_STRONG_INLINE Packet1cf por<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
209{
return Packet1cf(vreinterpret_f32_u32(vorr_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
210template<> 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)))); }
213template<> EIGEN_STRONG_INLINE Packet1cf pxor<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
214{
return Packet1cf(vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
215template<> 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)))); }
218template<> EIGEN_STRONG_INLINE Packet1cf pandnot<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
219{
return Packet1cf(vreinterpret_f32_u32(vbic_u32(vreinterpret_u32_f32(a.v), vreinterpret_u32_f32(b.v)))); }
220template<> 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)))); }
223template<> EIGEN_STRONG_INLINE Packet1cf pload<Packet1cf>(
const std::complex<float>* from)
224{ EIGEN_DEBUG_ALIGNED_LOAD
return Packet1cf(pload<Packet2f>((
const float*)from)); }
225template<> 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))); }
228template<> EIGEN_STRONG_INLINE Packet1cf ploadu<Packet1cf>(
const std::complex<float>* from)
229{ EIGEN_DEBUG_UNALIGNED_LOAD
return Packet1cf(ploadu<Packet2f>((
const float*)from)); }
230template<> 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))); }
233template<> EIGEN_STRONG_INLINE Packet1cf ploaddup<Packet1cf>(
const std::complex<float>* from)
234{
return pset1<Packet1cf>(*from); }
235template<> EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(
const std::complex<float>* from)
236{
return pset1<Packet2cf>(*from); }
238template<> 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); }
240template<> 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); }
243template<> 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); }
245template<> 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); }
248template<> EIGEN_DEVICE_FUNC
inline Packet1cf pgather<std::complex<float>, Packet1cf>(
249 const std::complex<float>* from,
Index stride)
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));
254template<> EIGEN_DEVICE_FUNC
inline Packet2cf pgather<std::complex<float>, Packet2cf>(
255 const std::complex<float>* from,
Index stride)
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);
264template<> 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)); }
267template<> EIGEN_DEVICE_FUNC
inline void pscatter<std::complex<float>, Packet2cf>(
268 std::complex<float>* to,
const Packet2cf& from,
Index stride)
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));
274template<> EIGEN_STRONG_INLINE
void prefetch<std::complex<float> >(
const std::complex<float> *addr)
275{ EIGEN_ARM_PREFETCH(
reinterpret_cast<const float*
>(addr)); }
277template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet1cf>(
const Packet1cf& a)
279 EIGEN_ALIGN16 std::complex<float> x;
280 vst1_f32(
reinterpret_cast<float*
>(&x), a.v);
283template<> EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(
const Packet2cf& a)
285 EIGEN_ALIGN16 std::complex<float> x[2];
286 vst1q_f32(
reinterpret_cast<float*
>(x), a.v);
290template<> EIGEN_STRONG_INLINE Packet1cf preverse(
const Packet1cf& a) {
return a; }
291template<> EIGEN_STRONG_INLINE Packet2cf preverse(
const Packet2cf& a)
292{
return Packet2cf(vcombine_f32(vget_high_f32(a.v), vget_low_f32(a.v))); }
294template<> EIGEN_STRONG_INLINE Packet1cf pcplxflip<Packet1cf>(
const Packet1cf& a)
295{
return Packet1cf(vrev64_f32(a.v)); }
296template<> EIGEN_STRONG_INLINE Packet2cf pcplxflip<Packet2cf>(
const Packet2cf& a)
297{
return Packet2cf(vrev64q_f32(a.v)); }
299template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet1cf>(
const Packet1cf& a)
301 std::complex<float> s;
302 vst1_f32((
float *)&s, a.v);
305template<> EIGEN_STRONG_INLINE std::complex<float> predux<Packet2cf>(
const Packet2cf& a)
307 std::complex<float> s;
308 vst1_f32(
reinterpret_cast<float*
>(&s), vadd_f32(vget_low_f32(a.v), vget_high_f32(a.v)));
312template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet1cf>(
const Packet1cf& a)
314 std::complex<float> s;
315 vst1_f32((
float *)&s, a.v);
318template<> EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet2cf>(
const Packet2cf& a)
320 float32x2_t a1, a2, v1, v2, prod;
321 std::complex<float> s;
323 a1 = vget_low_f32(a.v);
324 a2 = vget_high_f32(a.v);
326 v1 = vdup_lane_f32(a1, 0);
328 v2 = vdup_lane_f32(a1, 1);
330 v1 = vmul_f32(v1, a2);
332 v2 = vmul_f32(v2, a2);
334 v2 = vreinterpret_f32_u32(veor_u32(vreinterpret_u32_f32(v2), p2ui_CONJ_XOR()));
338 prod = vadd_f32(v1, v2);
340 vst1_f32(
reinterpret_cast<float*
>(&s), prod);
345EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet1cf,Packet2f)
346EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet2cf,Packet4f)
348template<> EIGEN_STRONG_INLINE Packet1cf pdiv<Packet1cf>(
const Packet1cf& a,
const Packet1cf& b)
350 return pdiv_complex(a, b);
352template<> EIGEN_STRONG_INLINE Packet2cf pdiv<Packet2cf>(
const Packet2cf& a,
const Packet2cf& b)
354 return pdiv_complex(a, b);
357EIGEN_DEVICE_FUNC
inline void ptranspose(PacketBlock<Packet1cf, 1>& ) {}
358EIGEN_DEVICE_FUNC
inline void ptranspose(PacketBlock<Packet2cf, 2>& kernel)
360 Packet4f tmp = vcombine_f32(vget_high_f32(kernel.packet[0].v), vget_high_f32(kernel.packet[1].v));
361 kernel.packet[0].v = vcombine_f32(vget_low_f32(kernel.packet[0].v), vget_low_f32(kernel.packet[1].v));
362 kernel.packet[1].v = tmp;
365template<> EIGEN_STRONG_INLINE Packet1cf psqrt<Packet1cf>(
const Packet1cf& a) {
366 return psqrt_complex<Packet1cf>(a);
369template<> EIGEN_STRONG_INLINE Packet2cf psqrt<Packet2cf>(
const Packet2cf& a) {
370 return psqrt_complex<Packet2cf>(a);
374#if EIGEN_ARCH_ARM64 && !EIGEN_APPLE_DOUBLE_NEON_BUG
376inline uint64x2_t p2ul_CONJ_XOR() {
377 static const uint64_t p2ul_conj_XOR_DATA[] = {0x0, 0x8000000000000000};
378 return vld1q_u64(p2ul_conj_XOR_DATA);
383 EIGEN_STRONG_INLINE Packet1cd() {}
384 EIGEN_STRONG_INLINE
explicit Packet1cd(
const Packet2d& a) : v(a) {}
388template<>
struct packet_traits<
std::complex<double> > : default_packet_traits
390 typedef Packet1cd type;
391 typedef Packet1cd half;
412template<>
struct unpacket_traits<Packet1cd>
414 typedef std::complex<double> type;
415 typedef Packet1cd half;
416 typedef Packet2d as_real;
422 masked_load_available=
false,
423 masked_store_available=
false
427template<> EIGEN_STRONG_INLINE Packet1cd pload<Packet1cd>(
const std::complex<double>* from)
428{ EIGEN_DEBUG_ALIGNED_LOAD
return Packet1cd(pload<Packet2d>(
reinterpret_cast<const double*
>(from))); }
430template<> EIGEN_STRONG_INLINE Packet1cd ploadu<Packet1cd>(
const std::complex<double>* from)
431{ EIGEN_DEBUG_UNALIGNED_LOAD
return Packet1cd(ploadu<Packet2d>(
reinterpret_cast<const double*
>(from))); }
433template<> EIGEN_STRONG_INLINE Packet1cd pset1<Packet1cd>(
const std::complex<double>& from)
436 return ploadu<Packet1cd>(&from);
439template<> EIGEN_STRONG_INLINE Packet1cd padd<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
440{
return Packet1cd(padd<Packet2d>(a.v, b.v)); }
442template<> EIGEN_STRONG_INLINE Packet1cd psub<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
443{
return Packet1cd(psub<Packet2d>(a.v, b.v)); }
445template<> EIGEN_STRONG_INLINE Packet1cd pnegate(
const Packet1cd& a)
446{
return Packet1cd(pnegate<Packet2d>(a.v)); }
448template<> EIGEN_STRONG_INLINE Packet1cd pconj(
const Packet1cd& a)
449{
return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v), p2ul_CONJ_XOR()))); }
451template<> EIGEN_STRONG_INLINE Packet1cd pmul<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
456 v1 = vdupq_lane_f64(vget_low_f64(a.v), 0);
458 v2 = vdupq_lane_f64(vget_high_f64(a.v), 0);
460 v1 = vmulq_f64(v1, b.v);
462 v2 = vmulq_f64(v2, b.v);
464 v2 = vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(v2), p2ul_CONJ_XOR()));
466 v2 = preverse<Packet2d>(v2);
468 return Packet1cd(vaddq_f64(v1, v2));
471template<> EIGEN_STRONG_INLINE Packet1cd pcmp_eq(
const Packet1cd& a,
const Packet1cd& b)
475 Packet2d eq = pcmp_eq<Packet2d>(a.v, b.v);
478 Packet2d eq_swapped = vreinterpretq_f64_u32(vrev64q_u32(vreinterpretq_u32_f64(eq)));
480 return Packet1cd(pand<Packet2d>(eq, eq_swapped));
483template<> EIGEN_STRONG_INLINE Packet1cd pand<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
484{
return Packet1cd(vreinterpretq_f64_u64(vandq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
486template<> EIGEN_STRONG_INLINE Packet1cd por<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
487{
return Packet1cd(vreinterpretq_f64_u64(vorrq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
489template<> EIGEN_STRONG_INLINE Packet1cd pxor<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
490{
return Packet1cd(vreinterpretq_f64_u64(veorq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
492template<> EIGEN_STRONG_INLINE Packet1cd pandnot<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
493{
return Packet1cd(vreinterpretq_f64_u64(vbicq_u64(vreinterpretq_u64_f64(a.v),vreinterpretq_u64_f64(b.v)))); }
495template<> EIGEN_STRONG_INLINE Packet1cd ploaddup<Packet1cd>(
const std::complex<double>* from)
496{
return pset1<Packet1cd>(*from); }
498template<> EIGEN_STRONG_INLINE
void pstore <std::complex<double> >(std::complex<double> *to,
const Packet1cd& from)
499{ EIGEN_DEBUG_ALIGNED_STORE pstore(
reinterpret_cast<double*
>(to), from.v); }
501template<> EIGEN_STRONG_INLINE
void pstoreu<std::complex<double> >(std::complex<double> *to,
const Packet1cd& from)
502{ EIGEN_DEBUG_UNALIGNED_STORE pstoreu(
reinterpret_cast<double*
>(to), from.v); }
504template<> EIGEN_STRONG_INLINE
void prefetch<std::complex<double> >(
const std::complex<double> *addr)
505{ EIGEN_ARM_PREFETCH(
reinterpret_cast<const double*
>(addr)); }
507template<> EIGEN_DEVICE_FUNC
inline Packet1cd pgather<std::complex<double>, Packet1cd>(
508 const std::complex<double>* from,
Index stride)
510 Packet2d res = pset1<Packet2d>(0.0);
511 res = vsetq_lane_f64(std::real(from[0*stride]), res, 0);
512 res = vsetq_lane_f64(std::imag(from[0*stride]), res, 1);
513 return Packet1cd(res);
516template<> EIGEN_DEVICE_FUNC
inline void pscatter<std::complex<double>, Packet1cd>(
517 std::complex<double>* to,
const Packet1cd& from,
Index stride)
518{ to[stride*0] = std::complex<double>(vgetq_lane_f64(from.v, 0), vgetq_lane_f64(from.v, 1)); }
520template<> EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet1cd>(
const Packet1cd& a)
522 EIGEN_ALIGN16 std::complex<double> res;
523 pstore<std::complex<double> >(&res, a);
527template<> EIGEN_STRONG_INLINE Packet1cd preverse(
const Packet1cd& a) {
return a; }
529template<> EIGEN_STRONG_INLINE std::complex<double> predux<Packet1cd>(
const Packet1cd& a) {
return pfirst(a); }
531template<> EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet1cd>(
const Packet1cd& a) {
return pfirst(a); }
533EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet1cd,Packet2d)
535template<> EIGEN_STRONG_INLINE Packet1cd pdiv<Packet1cd>(
const Packet1cd& a,
const Packet1cd& b)
537 return pdiv_complex(a, b);
540EIGEN_STRONG_INLINE Packet1cd pcplxflip(
const Packet1cd& x)
541{
return Packet1cd(preverse(Packet2d(x.v))); }
543EIGEN_STRONG_INLINE
void ptranspose(PacketBlock<Packet1cd,2>& kernel)
545 Packet2d tmp = vcombine_f64(vget_high_f64(kernel.packet[0].v), vget_high_f64(kernel.packet[1].v));
546 kernel.packet[0].v = vcombine_f64(vget_low_f64(kernel.packet[0].v), vget_low_f64(kernel.packet[1].v));
547 kernel.packet[1].v = tmp;
550template<> EIGEN_STRONG_INLINE Packet1cd psqrt<Packet1cd>(
const Packet1cd& a) {
551 return psqrt_complex<Packet1cd>(a);
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
@ Aligned16
Data pointer is aligned on a 16 bytes boundary.
Definition Constants.h:235
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition GenericPacketMath.h:133