mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable vectorization of pack_rhs with a column-major RHS.
Rename and generalize Kernel<*> to PacketBlock<*,N>.
This commit is contained in:
@@ -417,15 +417,15 @@ template<> inline std::complex<double> pmul(const std::complex<double>& a, const
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* Kernel, that is a collection of N packets where N is the number of words
|
||||
* in the packet.
|
||||
* PacketBlock, that is a collection of N packets where the number of words
|
||||
* in the packet is a multiple of N.
|
||||
***************************************************************************/
|
||||
template <typename Packet> struct Kernel {
|
||||
Packet packet[unpacket_traits<Packet>::size];
|
||||
template <typename Packet,int N=unpacket_traits<Packet>::size> struct PacketBlock {
|
||||
Packet packet[N];
|
||||
};
|
||||
|
||||
template<typename Packet> EIGEN_DEVICE_FUNC inline void
|
||||
ptranspose(Kernel<Packet>& /*kernel*/) {
|
||||
ptranspose(PacketBlock<Packet,1>& /*kernel*/) {
|
||||
// Nothing to do in the scalar case, i.e. a 1x1 matrix.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user