mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
fix bug in sliced redux
This commit is contained in:
parent
c55761e015
commit
42a1c983c1
@ -257,7 +257,7 @@ struct ei_redux_impl<Func, Derived, SliceVectorizedTraversal, NoUnrolling>
|
|||||||
{
|
{
|
||||||
PacketScalar packet_res = mat.template packet<Unaligned>(0,0);
|
PacketScalar packet_res = mat.template packet<Unaligned>(0,0);
|
||||||
for(int j=0; j<outerSize; ++j)
|
for(int j=0; j<outerSize; ++j)
|
||||||
for(int i=0; i<packetedInnerSize; i+=int(packetSize))
|
for(int i=(j==0?packetSize:0); i<packetedInnerSize; i+=int(packetSize))
|
||||||
packet_res = func.packetOp(packet_res, mat.template packetByOuterInner<Unaligned>(j,i));
|
packet_res = func.packetOp(packet_res, mat.template packetByOuterInner<Unaligned>(j,i));
|
||||||
|
|
||||||
res = func.predux(packet_res);
|
res = func.predux(packet_res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user