Go to the documentation of this file.
10 #ifndef EIGEN_COMPLEX_AVX512_H
11 #define EIGEN_COMPLEX_AVX512_H
50 typedef std::complex<float>
type;
71 const __m512 mask = _mm512_castsi512_ps(_mm512_setr_epi32(
72 0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000,
73 0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000,0x00000000,0x80000000));
79 __m512 tmp2 = _mm512_mul_ps(_mm512_movehdup_ps(
a.v), _mm512_permute_ps(
b.v, _MM_SHUFFLE(2,3,0,1)));
80 return Packet8cf(_mm512_fmaddsub_ps(_mm512_moveldup_ps(
a.v),
b.v, tmp2));
90 __m512 eq = pcmp_eq<Packet16f>(
a.v,
b.v);
122 pscatter((
double*)(
void*)to, _mm512_castps_pd(from.v), stride);
132 _mm512_permutexvar_epi64( _mm512_set_epi32(0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7),
133 _mm512_castps_si512(
a.v))));
150 __m256 lane0 = extract256<0>(
a.v);
151 __m256 lane1 = extract256<1>(
a.v);
152 __m256
res = _mm256_add_ps(lane0, lane1);
161 __m512 tmp = _mm512_mul_ps(
b.v,
b.v);
162 __m512 tmp2 = _mm512_shuffle_ps(tmp,tmp,0xB1);
163 __m512 denom = _mm512_add_ps(tmp, tmp2);
164 return Packet8cf(_mm512_div_ps(num.
v, denom));
169 return Packet8cf(_mm512_shuffle_ps(
x.v,
x.v, _MM_SHUFFLE(2, 3, 0 ,1)));
205 typedef std::complex<double>
type;
222 const __m512d mask = _mm512_castsi512_pd(
223 _mm512_set_epi32(0x80000000,0
x0,0
x0,0
x0,0x80000000,0
x0,0
x0,0
x0,
230 __m512d tmp1 = _mm512_shuffle_pd(
a.v,
a.v,0
x0);
231 __m512d tmp2 = _mm512_shuffle_pd(
a.v,
a.v,0xFF);
232 __m512d tmp3 = _mm512_shuffle_pd(
b.v,
b.v,0x55);
233 __m512d odd = _mm512_mul_pd(tmp2, tmp3);
234 return Packet4cd(_mm512_fmaddsub_pd(tmp1,
b.v, odd));
245 __m512d eq = pcmp_eq<Packet8d>(
a.v,
b.v);
256 #ifdef EIGEN_VECTORIZE_AVX512DQ
273 return Packet4cd(_mm512_insertf64x4(_mm512_castpd256_pd512(
280 __m512i fromi = _mm512_castpd_si512(from.v);
281 double* tod = (
double*)(
void*)to;
282 _mm_storeu_pd(tod+0*stride, _mm_castsi128_pd(_mm512_extracti32x4_epi32(fromi,0)) );
283 _mm_storeu_pd(tod+2*stride, _mm_castsi128_pd(_mm512_extracti32x4_epi32(fromi,1)) );
284 _mm_storeu_pd(tod+4*stride, _mm_castsi128_pd(_mm512_extracti32x4_epi32(fromi,2)) );
285 _mm_storeu_pd(tod+6*stride, _mm_castsi128_pd(_mm512_extracti32x4_epi32(fromi,3)) );
290 __m128d low = extract128<0>(
a.v);
292 _mm_store_pd(
res, low);
293 return std::complex<double>(
res[0],
res[1]);
350 __m512d tmp = _mm512_mul_pd(
b.v,
b.v);
351 __m512d denom =
padd(_mm512_permute_pd(tmp,0x55), tmp);
352 return Packet4cd(_mm512_div_pd(num.
v, denom));
357 return Packet4cd(_mm512_permute_pd(
x.v,0x55));
412 return psqrt_complex<Packet4cd>(
a);
416 return psqrt_complex<Packet8cf>(
a);
422 #endif // EIGEN_COMPLEX_AVX512_H
EIGEN_STRONG_INLINE std::complex< float > predux< Packet8cf >(const Packet8cf &a)
EIGEN_STRONG_INLINE Packet8cf ploadquad< Packet8cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE Packet4cd pmul< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet4cd psqrt< Packet4cd >(const Packet4cd &a)
EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf &a, const Packet2cf &b)
#define EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE Packet8cf pset1< Packet8cf >(const std::complex< float > &from)
Namespace containing all symbols from the Eigen library.
EIGEN_STRONG_INLINE Packet4cd(const __m512d &a)
#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL)
EIGEN_STRONG_INLINE Packet8cf pcplxflip< Packet8cf >(const Packet8cf &x)
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
EIGEN_STRONG_INLINE Packet4cd pmadd(const Packet4cd &x, const Packet4cd &y, const Packet4cd &c) const
EIGEN_STRONG_INLINE Packet4cd pxor< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet2cd ploaddup< Packet2cd >(const std::complex< double > *from)
EIGEN_STRONG_INLINE Packet8d pload< Packet8d >(const double *from)
EIGEN_STRONG_INLINE bfloat16 pfirst(const Packet8bf &a)
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 Packet8d ploadu< Packet8d >(const double *from)
EIGEN_STRONG_INLINE Packet4cd pmul(const Packet4cd &a, const Packet4cd &b) const
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux_mul(const Packet &a)
static const Pose3 T3(Rot3::Rodrigues(-90, 0, 0), Point3(1, 2, 3))
EIGEN_STRONG_INLINE Packet8cf pandnot< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_STRONG_INLINE Packet8cf padd< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_DEVICE_FUNC Packet pdiv(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet8d ploadquad< Packet8d >(const double *from)
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType pmul(const LhsType &x, const RhsType &y) const
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
EIGEN_STRONG_INLINE Packet8cf ploadu< Packet8cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet8cf >(const Packet8cf &a)
EIGEN_STRONG_INLINE Packet4cd ploadu< Packet4cd >(const std::complex< double > *from)
EIGEN_STRONG_INLINE Packet4cd pandnot< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet1cd ploadu< Packet1cd >(const std::complex< double > *from)
EIGEN_STRONG_INLINE Packet8h pxor(const Packet8h &a, const Packet8h &b)
#define EIGEN_DEBUG_UNALIGNED_STORE
EIGEN_STRONG_INLINE Packet4cd()
EIGEN_STRONG_INLINE Packet4cd ptrue< Packet4cd >(const Packet4cd &a)
EIGEN_STRONG_INLINE Packet8cf pmul< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_STRONG_INLINE Packet8cf ploaddup< Packet8cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE Packet4cd pset1< Packet4cd >(const std::complex< double > &from)
EIGEN_STRONG_INLINE Packet8cf por< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_STRONG_INLINE std::complex< double > predux< Packet4cd >(const Packet4cd &a)
EIGEN_DEVICE_FUNC Packet8d pgather< double, Packet8d >(const double *from, Index stride)
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet16f ploadu< Packet16f >(const float *from)
EIGEN_DEVICE_FUNC internal::add_const_on_value_type< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar) >::type real_ref(const Scalar &x)
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
EIGEN_STRONG_INLINE Packet4cd padd< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
#define EIGEN_DEBUG_ALIGNED_LOAD
#define EIGEN_STRONG_INLINE
EIGEN_STRONG_INLINE Packet4cd pmadd(const Packet4cd &x, const Packet4cd &y, const Packet4cd &c) const
EIGEN_STRONG_INLINE Packet8d ploaddup< Packet8d >(const double *from)
EIGEN_DEVICE_FUNC void pscatter(Scalar *to, const Packet &from, Index)
EIGEN_STRONG_INLINE Packet1cd pset1< Packet1cd >(const std::complex< double > &from)
std::complex< float > type
EIGEN_STRONG_INLINE Packet4cd pload< Packet4cd >(const std::complex< double > *from)
EIGEN_STRONG_INLINE Packet16f pload< Packet16f >(const float *from)
EIGEN_STRONG_INLINE Packet8h pand(const Packet8h &a, const Packet8h &b)
EIGEN_STRONG_INLINE Packet8d pload1< Packet8d >(const double *from)
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
EIGEN_STRONG_INLINE Packet4cd pmadd(const Packet4cd &x, const Packet4cd &y, const Packet4cd &c) const
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
EIGEN_STRONG_INLINE Packet8cf(const __m512 &a)
EIGEN_STRONG_INLINE Packet8cf pxor< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_STRONG_INLINE Packet8cf pand< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_STRONG_INLINE std::complex< double > pfirst< Packet4cd >(const Packet4cd &a)
EIGEN_STRONG_INLINE Packet4cd pmul(const Packet4cd &a, const Packet4cd &b) const
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet4cd pmul(const Packet4cd &a, const Packet4cd &b) const
#define EIGEN_DEBUG_UNALIGNED_LOAD
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet8cf >(const Packet8cf &a)
EIGEN_STRONG_INLINE Packet4cd por< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet4cf predux_half_dowto4< Packet8cf >(const Packet8cf &a)
EIGEN_STRONG_INLINE Packet8cf ptrue< Packet8cf >(const Packet8cf &a)
Array< int, Dynamic, 1 > v
EIGEN_STRONG_INLINE Packet8cf()
EIGEN_STRONG_INLINE Packet4cd pcplxflip< Packet4cd >(const Packet4cd &x)
EIGEN_DEVICE_FUNC Packet padd(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet4cd pand< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet4cd psub< Packet4cd >(const Packet4cd &a, const Packet4cd &b)
EIGEN_STRONG_INLINE Packet8h por(const Packet8h &a, const Packet8h &b)
EIGEN_STRONG_INLINE Packet4cd ploaddup< Packet4cd >(const std::complex< double > *from)
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
EIGEN_STRONG_INLINE Packet8cf pload< Packet8cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE std::complex< double > predux_mul< Packet4cd >(const Packet4cd &a)
EIGEN_STRONG_INLINE Packet8h pandnot(const Packet8h &a, const Packet8h &b)
#define EIGEN_DEBUG_ALIGNED_STORE
EIGEN_STRONG_INLINE Packet8h ptrue(const Packet8h &a)
EIGEN_STRONG_INLINE Packet8cf psqrt< Packet8cf >(const Packet8cf &a)
EIGEN_STRONG_INLINE Packet8cf psub< Packet8cf >(const Packet8cf &a, const Packet8cf &b)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
std::complex< double > type
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:16