mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add intitial support for the vectorization of complex<float>
This commit is contained in:
@@ -140,6 +140,18 @@ struct ei_product_blocking_traits
|
||||
};
|
||||
};
|
||||
|
||||
template<typename Real>
|
||||
struct ei_product_blocking_traits<std::complex<Real> >
|
||||
{
|
||||
typedef std::complex<Real> Scalar;
|
||||
typedef typename ei_packet_traits<Scalar>::type PacketType;
|
||||
enum {
|
||||
PacketSize = sizeof(PacketType)/sizeof(Scalar),
|
||||
nr = 2,
|
||||
mr = 2 * PacketSize
|
||||
};
|
||||
};
|
||||
|
||||
/* Helper class to analyze the factors of a Product expression.
|
||||
* In particular it allows to pop out operator-, scalar multiples,
|
||||
* and conjugate */
|
||||
|
||||
Reference in New Issue
Block a user