Medial Code Documentation
Loading...
Searching...
No Matches
Complex.h
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// Copyright (C) 2018 Wave Computing, Inc.
5// Written by:
6// Chris Larsen
7// Alexey Frunze (afrunze@wavecomp.com)
8//
9// This Source Code Form is subject to the terms of the Mozilla
10// Public License v. 2.0. If a copy of the MPL was not distributed
11// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
13#ifndef EIGEN_COMPLEX_MSA_H
14#define EIGEN_COMPLEX_MSA_H
15
16#include <iostream>
17
18namespace Eigen {
19
20namespace internal {
21
22//---------- float ----------
23struct Packet2cf {
24 EIGEN_STRONG_INLINE Packet2cf() {
25 }
26 EIGEN_STRONG_INLINE explicit Packet2cf(const std::complex<float>& a,
27 const std::complex<float>& b) {
28 Packet4f t = { std::real(a), std::imag(a), std::real(b), std::imag(b) };
29 v = t;
30 }
31 EIGEN_STRONG_INLINE explicit Packet2cf(const Packet4f& a) : v(a) {
32 }
33 EIGEN_STRONG_INLINE Packet2cf(const Packet2cf& a) : v(a.v) {
34 }
35 EIGEN_STRONG_INLINE Packet2cf& operator=(const Packet2cf& b) {
36 v = b.v;
37 return *this;
38 }
39 EIGEN_STRONG_INLINE Packet2cf conjugate(void) const {
40 return Packet2cf((Packet4f)__builtin_msa_bnegi_d((v2u64)v, 63));
41 }
42 EIGEN_STRONG_INLINE Packet2cf& operator*=(const Packet2cf& b) {
43 Packet4f v1, v2;
44
45 // Get the real values of a | a1_re | a1_re | a2_re | a2_re |
46 v1 = (Packet4f)__builtin_msa_ilvev_w((v4i32)v, (v4i32)v);
47 // Get the imag values of a | a1_im | a1_im | a2_im | a2_im |
48 v2 = (Packet4f)__builtin_msa_ilvod_w((v4i32)v, (v4i32)v);
49 // Multiply the real a with b
50 v1 = pmul(v1, b.v);
51 // Multiply the imag a with b
52 v2 = pmul(v2, b.v);
53 // Conjugate v2
54 v2 = Packet2cf(v2).conjugate().v;
55 // Swap real/imag elements in v2.
56 v2 = (Packet4f)__builtin_msa_shf_w((v4i32)v2, EIGEN_MSA_SHF_I8(1, 0, 3, 2));
57 // Add and return the result
58 v = padd(v1, v2);
59 return *this;
60 }
61 EIGEN_STRONG_INLINE Packet2cf operator*(const Packet2cf& b) const {
62 return Packet2cf(*this) *= b;
63 }
64 EIGEN_STRONG_INLINE Packet2cf& operator+=(const Packet2cf& b) {
65 v = padd(v, b.v);
66 return *this;
67 }
68 EIGEN_STRONG_INLINE Packet2cf operator+(const Packet2cf& b) const {
69 return Packet2cf(*this) += b;
70 }
71 EIGEN_STRONG_INLINE Packet2cf& operator-=(const Packet2cf& b) {
72 v = psub(v, b.v);
73 return *this;
74 }
75 EIGEN_STRONG_INLINE Packet2cf operator-(const Packet2cf& b) const {
76 return Packet2cf(*this) -= b;
77 }
78 EIGEN_STRONG_INLINE Packet2cf operator/(const Packet2cf& b) const {
79 return pdiv_complex(Packet2cf(*this), b);
80 }
81 EIGEN_STRONG_INLINE Packet2cf& operator/=(const Packet2cf& b) {
82 *this = Packet2cf(*this) / b;
83 return *this;
84 }
85 EIGEN_STRONG_INLINE Packet2cf operator-(void) const {
86 return Packet2cf(pnegate(v));
87 }
88
89 Packet4f v;
90};
91
92inline std::ostream& operator<<(std::ostream& os, const Packet2cf& value) {
93 os << "[ (" << value.v[0] << ", " << value.v[1]
94 << "i),"
95 " ("
96 << value.v[2] << ", " << value.v[3] << "i) ]";
97 return os;
98}
99
100template <>
101struct packet_traits<std::complex<float> > : default_packet_traits {
102 typedef Packet2cf type;
103 typedef Packet2cf half;
104 enum {
105 Vectorizable = 1,
106 AlignedOnScalar = 1,
107 size = 2,
108 HasHalfPacket = 0,
109
110 HasAdd = 1,
111 HasSub = 1,
112 HasMul = 1,
113 HasDiv = 1,
114 HasNegate = 1,
115 HasAbs = 0,
116 HasAbs2 = 0,
117 HasMin = 0,
118 HasMax = 0,
119 HasSetLinear = 0,
120 HasBlend = 1
121 };
122};
123
124template <>
125struct unpacket_traits<Packet2cf> {
126 typedef std::complex<float> type;
127 enum { size = 2, alignment = Aligned16, vectorizable=true, masked_load_available=false, masked_store_available=false };
128 typedef Packet2cf half;
129};
130
131template <>
132EIGEN_STRONG_INLINE Packet2cf pset1<Packet2cf>(const std::complex<float>& from) {
133 EIGEN_MSA_DEBUG;
134
135 float f0 = from.real(), f1 = from.imag();
136 Packet4f v0 = { f0, f0, f0, f0 };
137 Packet4f v1 = { f1, f1, f1, f1 };
138 return Packet2cf((Packet4f)__builtin_msa_ilvr_w((Packet4i)v1, (Packet4i)v0));
139}
140
141template <>
142EIGEN_STRONG_INLINE Packet2cf padd<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
143 EIGEN_MSA_DEBUG;
144
145 return a + b;
146}
147
148template <>
149EIGEN_STRONG_INLINE Packet2cf psub<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
150 EIGEN_MSA_DEBUG;
151
152 return a - b;
153}
154
155template <>
156EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf& a) {
157 EIGEN_MSA_DEBUG;
158
159 return -a;
160}
161
162template <>
163EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf& a) {
164 EIGEN_MSA_DEBUG;
165
166 return a.conjugate();
167}
168
169template <>
170EIGEN_STRONG_INLINE Packet2cf pmul<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
171 EIGEN_MSA_DEBUG;
172
173 return a * b;
174}
175
176template <>
177EIGEN_STRONG_INLINE Packet2cf pand<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
178 EIGEN_MSA_DEBUG;
179
180 return Packet2cf(pand(a.v, b.v));
181}
182
183template <>
184EIGEN_STRONG_INLINE Packet2cf por<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
185 EIGEN_MSA_DEBUG;
186
187 return Packet2cf(por(a.v, b.v));
188}
189
190template <>
191EIGEN_STRONG_INLINE Packet2cf pxor<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
192 EIGEN_MSA_DEBUG;
193
194 return Packet2cf(pxor(a.v, b.v));
195}
196
197template <>
198EIGEN_STRONG_INLINE Packet2cf pandnot<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
199 EIGEN_MSA_DEBUG;
200
201 return Packet2cf(pandnot(a.v, b.v));
202}
203
204template <>
205EIGEN_STRONG_INLINE Packet2cf pload<Packet2cf>(const std::complex<float>* from) {
206 EIGEN_MSA_DEBUG;
207
208 EIGEN_DEBUG_ALIGNED_LOAD return Packet2cf(pload<Packet4f>((const float*)from));
209}
210
211template <>
212EIGEN_STRONG_INLINE Packet2cf ploadu<Packet2cf>(const std::complex<float>* from) {
213 EIGEN_MSA_DEBUG;
214
215 EIGEN_DEBUG_UNALIGNED_LOAD return Packet2cf(ploadu<Packet4f>((const float*)from));
216}
217
218template <>
219EIGEN_STRONG_INLINE Packet2cf ploaddup<Packet2cf>(const std::complex<float>* from) {
220 EIGEN_MSA_DEBUG;
221
222 return pset1<Packet2cf>(*from);
223}
224
225template <>
226EIGEN_STRONG_INLINE void pstore<std::complex<float> >(std::complex<float>* to,
227 const Packet2cf& from) {
228 EIGEN_MSA_DEBUG;
229
230 EIGEN_DEBUG_ALIGNED_STORE pstore<float>((float*)to, from.v);
231}
232
233template <>
234EIGEN_STRONG_INLINE void pstoreu<std::complex<float> >(std::complex<float>* to,
235 const Packet2cf& from) {
236 EIGEN_MSA_DEBUG;
237
238 EIGEN_DEBUG_UNALIGNED_STORE pstoreu<float>((float*)to, from.v);
239}
240
241template <>
242EIGEN_DEVICE_FUNC inline Packet2cf pgather<std::complex<float>, Packet2cf>(
243 const std::complex<float>* from, Index stride) {
244 EIGEN_MSA_DEBUG;
245
246 return Packet2cf(from[0 * stride], from[1 * stride]);
247}
248
249template <>
250EIGEN_DEVICE_FUNC inline void pscatter<std::complex<float>, Packet2cf>(std::complex<float>* to,
251 const Packet2cf& from,
252 Index stride) {
253 EIGEN_MSA_DEBUG;
254
255 *to = std::complex<float>(from.v[0], from.v[1]);
256 to += stride;
257 *to = std::complex<float>(from.v[2], from.v[3]);
258}
259
260template <>
261EIGEN_STRONG_INLINE void prefetch<std::complex<float> >(const std::complex<float>* addr) {
262 EIGEN_MSA_DEBUG;
263
264 prefetch(reinterpret_cast<const float*>(addr));
265}
266
267template <>
268EIGEN_STRONG_INLINE std::complex<float> pfirst<Packet2cf>(const Packet2cf& a) {
269 EIGEN_MSA_DEBUG;
270
271 return std::complex<float>(a.v[0], a.v[1]);
272}
273
274template <>
275EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf& a) {
276 EIGEN_MSA_DEBUG;
277
278 return Packet2cf((Packet4f)__builtin_msa_shf_w((v4i32)a.v, EIGEN_MSA_SHF_I8(2, 3, 0, 1)));
279}
280
281template <>
282EIGEN_STRONG_INLINE Packet2cf pcplxflip<Packet2cf>(const Packet2cf& a) {
283 EIGEN_MSA_DEBUG;
284
285 return Packet2cf((Packet4f)__builtin_msa_shf_w((v4i32)a.v, EIGEN_MSA_SHF_I8(1, 0, 3, 2)));
286}
287
288template <>
289EIGEN_STRONG_INLINE std::complex<float> predux<Packet2cf>(const Packet2cf& a) {
290 EIGEN_MSA_DEBUG;
291
292 Packet4f value = (Packet4f)preverse((Packet2d)a.v);
293 value += a.v;
294 return std::complex<float>(value[0], value[1]);
295}
296
297template <>
298EIGEN_STRONG_INLINE std::complex<float> predux_mul<Packet2cf>(const Packet2cf& a) {
299 EIGEN_MSA_DEBUG;
300
301 return std::complex<float>((a.v[0] * a.v[2]) - (a.v[1] * a.v[3]),
302 (a.v[0] * a.v[3]) + (a.v[1] * a.v[2]));
303}
304
305EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet2cf, Packet4f)
306
307template <>
308EIGEN_STRONG_INLINE Packet2cf pdiv<Packet2cf>(const Packet2cf& a, const Packet2cf& b) {
309 EIGEN_MSA_DEBUG;
310
311 return a / b;
312}
313
314inline std::ostream& operator<<(std::ostream& os, const PacketBlock<Packet2cf, 2>& value) {
315 os << "[ " << value.packet[0] << ", " << std::endl << " " << value.packet[1] << " ]";
316 return os;
317}
318
319EIGEN_DEVICE_FUNC inline void ptranspose(PacketBlock<Packet2cf, 2>& kernel) {
320 EIGEN_MSA_DEBUG;
321
322 Packet4f tmp =
323 (Packet4f)__builtin_msa_ilvl_d((v2i64)kernel.packet[1].v, (v2i64)kernel.packet[0].v);
324 kernel.packet[0].v =
325 (Packet4f)__builtin_msa_ilvr_d((v2i64)kernel.packet[1].v, (v2i64)kernel.packet[0].v);
326 kernel.packet[1].v = tmp;
327}
328
329template <>
330EIGEN_STRONG_INLINE Packet2cf pblend(const Selector<2>& ifPacket, const Packet2cf& thenPacket,
331 const Packet2cf& elsePacket) {
332 return (Packet2cf)(Packet4f)pblend<Packet2d>(ifPacket, (Packet2d)thenPacket.v,
333 (Packet2d)elsePacket.v);
334}
335
336//---------- double ----------
337
338struct Packet1cd {
339 EIGEN_STRONG_INLINE Packet1cd() {
340 }
341 EIGEN_STRONG_INLINE explicit Packet1cd(const std::complex<double>& a) {
342 v[0] = std::real(a);
343 v[1] = std::imag(a);
344 }
345 EIGEN_STRONG_INLINE explicit Packet1cd(const Packet2d& a) : v(a) {
346 }
347 EIGEN_STRONG_INLINE Packet1cd(const Packet1cd& a) : v(a.v) {
348 }
349 EIGEN_STRONG_INLINE Packet1cd& operator=(const Packet1cd& b) {
350 v = b.v;
351 return *this;
352 }
353 EIGEN_STRONG_INLINE Packet1cd conjugate(void) const {
354 static const v2u64 p2ul_CONJ_XOR = { 0x0, 0x8000000000000000 };
355 return (Packet1cd)pxor(v, (Packet2d)p2ul_CONJ_XOR);
356 }
357 EIGEN_STRONG_INLINE Packet1cd& operator*=(const Packet1cd& b) {
358 Packet2d v1, v2;
359
360 // Get the real values of a | a1_re | a1_re
362 // Get the imag values of a | a1_im | a1_im
364 // Multiply the real a with b
365 v1 = pmul(v1, b.v);
366 // Multiply the imag a with b
367 v2 = pmul(v2, b.v);
368 // Conjugate v2
369 v2 = Packet1cd(v2).conjugate().v;
370 // Swap real/imag elements in v2.
371 v2 = (Packet2d)__builtin_msa_shf_w((v4i32)v2, EIGEN_MSA_SHF_I8(2, 3, 0, 1));
372 // Add and return the result
373 v = padd(v1, v2);
374 return *this;
375 }
376 EIGEN_STRONG_INLINE Packet1cd operator*(const Packet1cd& b) const {
377 return Packet1cd(*this) *= b;
378 }
379 EIGEN_STRONG_INLINE Packet1cd& operator+=(const Packet1cd& b) {
380 v = padd(v, b.v);
381 return *this;
382 }
383 EIGEN_STRONG_INLINE Packet1cd operator+(const Packet1cd& b) const {
384 return Packet1cd(*this) += b;
385 }
386 EIGEN_STRONG_INLINE Packet1cd& operator-=(const Packet1cd& b) {
387 v = psub(v, b.v);
388 return *this;
389 }
390 EIGEN_STRONG_INLINE Packet1cd operator-(const Packet1cd& b) const {
391 return Packet1cd(*this) -= b;
392 }
393 EIGEN_STRONG_INLINE Packet1cd& operator/=(const Packet1cd& b) {
394 *this *= b.conjugate();
395 Packet2d s = pmul<Packet2d>(b.v, b.v);
396 s = padd(s, preverse<Packet2d>(s));
397 v = pdiv(v, s);
398 return *this;
399 }
400 EIGEN_STRONG_INLINE Packet1cd operator/(const Packet1cd& b) const {
401 return Packet1cd(*this) /= b;
402 }
403 EIGEN_STRONG_INLINE Packet1cd operator-(void) const {
404 return Packet1cd(pnegate(v));
405 }
406
407 Packet2d v;
408};
409
410inline std::ostream& operator<<(std::ostream& os, const Packet1cd& value) {
411 os << "[ (" << value.v[0] << ", " << value.v[1] << "i) ]";
412 return os;
413}
414
415template <>
416struct packet_traits<std::complex<double> > : default_packet_traits {
417 typedef Packet1cd type;
418 typedef Packet1cd half;
419 enum {
420 Vectorizable = 1,
421 AlignedOnScalar = 0,
422 size = 1,
423 HasHalfPacket = 0,
424
425 HasAdd = 1,
426 HasSub = 1,
427 HasMul = 1,
428 HasDiv = 1,
429 HasNegate = 1,
430 HasAbs = 0,
431 HasAbs2 = 0,
432 HasMin = 0,
433 HasMax = 0,
434 HasSetLinear = 0
435 };
436};
437
438template <>
440 typedef std::complex<double> type;
441 enum { size = 1, alignment = Aligned16, vectorizable=true, masked_load_available=false, masked_store_available=false };
442 typedef Packet1cd half;
443};
444
445template <>
446EIGEN_STRONG_INLINE Packet1cd pload<Packet1cd>(const std::complex<double>* from) {
447 EIGEN_MSA_DEBUG;
448
449 EIGEN_DEBUG_ALIGNED_LOAD return Packet1cd(pload<Packet2d>((const double*)from));
450}
451
452template <>
453EIGEN_STRONG_INLINE Packet1cd ploadu<Packet1cd>(const std::complex<double>* from) {
454 EIGEN_MSA_DEBUG;
455
456 EIGEN_DEBUG_UNALIGNED_LOAD return Packet1cd(ploadu<Packet2d>((const double*)from));
457}
458
459template <>
460EIGEN_STRONG_INLINE Packet1cd pset1<Packet1cd>(const std::complex<double>& from) {
461 EIGEN_MSA_DEBUG;
462
463 return Packet1cd(from);
464}
465
466template <>
467EIGEN_STRONG_INLINE Packet1cd padd<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
468 EIGEN_MSA_DEBUG;
469
470 return a + b;
471}
472
473template <>
474EIGEN_STRONG_INLINE Packet1cd psub<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
475 EIGEN_MSA_DEBUG;
476
477 return a - b;
478}
479
480template <>
481EIGEN_STRONG_INLINE Packet1cd pnegate(const Packet1cd& a) {
482 EIGEN_MSA_DEBUG;
483
484 return -a;
485}
486
487template <>
488EIGEN_STRONG_INLINE Packet1cd pconj(const Packet1cd& a) {
489 EIGEN_MSA_DEBUG;
490
491 return a.conjugate();
492}
493
494template <>
495EIGEN_STRONG_INLINE Packet1cd pmul<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
496 EIGEN_MSA_DEBUG;
497
498 return a * b;
499}
500
501template <>
502EIGEN_STRONG_INLINE Packet1cd pand<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
503 EIGEN_MSA_DEBUG;
504
505 return Packet1cd(pand(a.v, b.v));
506}
507
508template <>
509EIGEN_STRONG_INLINE Packet1cd por<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
510 EIGEN_MSA_DEBUG;
511
512 return Packet1cd(por(a.v, b.v));
513}
514
515template <>
516EIGEN_STRONG_INLINE Packet1cd pxor<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
517 EIGEN_MSA_DEBUG;
518
519 return Packet1cd(pxor(a.v, b.v));
520}
521
522template <>
523EIGEN_STRONG_INLINE Packet1cd pandnot<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
524 EIGEN_MSA_DEBUG;
525
526 return Packet1cd(pandnot(a.v, b.v));
527}
528
529template <>
530EIGEN_STRONG_INLINE Packet1cd ploaddup<Packet1cd>(const std::complex<double>* from) {
531 EIGEN_MSA_DEBUG;
532
533 return pset1<Packet1cd>(*from);
534}
535
536template <>
537EIGEN_STRONG_INLINE void pstore<std::complex<double> >(std::complex<double>* to,
538 const Packet1cd& from) {
539 EIGEN_MSA_DEBUG;
540
541 EIGEN_DEBUG_ALIGNED_STORE pstore<double>((double*)to, from.v);
542}
543
544template <>
545EIGEN_STRONG_INLINE void pstoreu<std::complex<double> >(std::complex<double>* to,
546 const Packet1cd& from) {
547 EIGEN_MSA_DEBUG;
548
549 EIGEN_DEBUG_UNALIGNED_STORE pstoreu<double>((double*)to, from.v);
550}
551
552template <>
553EIGEN_STRONG_INLINE void prefetch<std::complex<double> >(const std::complex<double>* addr) {
554 EIGEN_MSA_DEBUG;
555
556 prefetch(reinterpret_cast<const double*>(addr));
557}
558
559template <>
560EIGEN_DEVICE_FUNC inline Packet1cd pgather<std::complex<double>, Packet1cd>(
561 const std::complex<double>* from, Index stride __attribute__((unused))) {
562 EIGEN_MSA_DEBUG;
563
564 Packet1cd res;
565 res.v[0] = std::real(from[0]);
566 res.v[1] = std::imag(from[0]);
567 return res;
568}
569
570template <>
571EIGEN_DEVICE_FUNC inline void pscatter<std::complex<double>, Packet1cd>(std::complex<double>* to,
572 const Packet1cd& from,
573 Index stride
574 __attribute__((unused))) {
575 EIGEN_MSA_DEBUG;
576
577 pstore(to, from);
578}
579
580template <>
581EIGEN_STRONG_INLINE std::complex<double> pfirst<Packet1cd>(const Packet1cd& a) {
582 EIGEN_MSA_DEBUG;
583
584 return std::complex<double>(a.v[0], a.v[1]);
585}
586
587template <>
588EIGEN_STRONG_INLINE Packet1cd preverse(const Packet1cd& a) {
589 EIGEN_MSA_DEBUG;
590
591 return a;
592}
593
594template <>
595EIGEN_STRONG_INLINE std::complex<double> predux<Packet1cd>(const Packet1cd& a) {
596 EIGEN_MSA_DEBUG;
597
598 return pfirst(a);
599}
600
601template <>
602EIGEN_STRONG_INLINE std::complex<double> predux_mul<Packet1cd>(const Packet1cd& a) {
603 EIGEN_MSA_DEBUG;
604
605 return pfirst(a);
606}
607
608EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(Packet1cd, Packet2d)
609
610template <>
611EIGEN_STRONG_INLINE Packet1cd pdiv<Packet1cd>(const Packet1cd& a, const Packet1cd& b) {
612 EIGEN_MSA_DEBUG;
613
614 return a / b;
615}
616
617EIGEN_STRONG_INLINE Packet1cd pcplxflip /*<Packet1cd>*/ (const Packet1cd& x) {
618 EIGEN_MSA_DEBUG;
619
620 return Packet1cd(preverse(Packet2d(x.v)));
621}
622
623inline std::ostream& operator<<(std::ostream& os, const PacketBlock<Packet1cd, 2>& value) {
624 os << "[ " << value.packet[0] << ", " << std::endl << " " << value.packet[1] << " ]";
625 return os;
626}
627
628EIGEN_STRONG_INLINE void ptranspose(PacketBlock<Packet1cd, 2>& kernel) {
629 EIGEN_MSA_DEBUG;
630
631 Packet2d v1, v2;
632
633 v1 = (Packet2d)__builtin_msa_ilvev_d((v2i64)kernel.packet[0].v, (v2i64)kernel.packet[1].v);
634 // Get the imag values of a
635 v2 = (Packet2d)__builtin_msa_ilvod_d((v2i64)kernel.packet[0].v, (v2i64)kernel.packet[1].v);
636
637 kernel.packet[0].v = v1;
638 kernel.packet[1].v = v2;
639}
640
641} // end namespace internal
642
643} // end namespace Eigen
644
645#endif // EIGEN_COMPLEX_MSA_H
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 BFloat16.h:88
Definition Half.h:140
Definition Complex.h:338
Definition GenericPacketMath.h:133