mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add vectorization of Reverse (was more tricky than I thought) and
simplify the index based functions
This commit is contained in:
@@ -134,6 +134,11 @@ template<typename Scalar> void packetmath()
|
||||
}
|
||||
ei_pstore(data2, ei_preduxp(packets));
|
||||
VERIFY(areApprox(ref, data2, PacketSize) && "ei_preduxp");
|
||||
|
||||
for (int i=0; i<PacketSize; ++i)
|
||||
ref[i] = data1[PacketSize-i-1];
|
||||
ei_pstore(data2, ei_preverse(ei_pload(data1)));
|
||||
VERIFY(areApprox(ref, data2, PacketSize) && "ei_preverse");
|
||||
}
|
||||
|
||||
void test_packetmath()
|
||||
|
||||
Reference in New Issue
Block a user