mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-17 22:25:55 +08:00
Fix Reshape traits flag calculate bug
This commit is contained in:
parent
2b89080903
commit
009047db27
@ -89,13 +89,11 @@ struct traits<Reshape<XprType, ReshapeRows, ReshapeCols> > : traits<XprType>
|
|||||||
&& ColsAtCompileTime == ReshapeCols
|
&& ColsAtCompileTime == ReshapeCols
|
||||||
&& RowsAtCompileTime != Dynamic
|
&& RowsAtCompileTime != Dynamic
|
||||||
&& ColsAtCompileTime != Dynamic,
|
&& ColsAtCompileTime != Dynamic,
|
||||||
MaskDirectAccessBit = (IsSameShapeAtCompileTime ? DirectAccessBit : 0)
|
|
||||||
&& DirectAccessBit,
|
|
||||||
Flags0 = traits<XprType>::Flags & ( (HereditaryBits & ~RowMajorBit) |
|
Flags0 = traits<XprType>::Flags & ( (HereditaryBits & ~RowMajorBit) |
|
||||||
MaskDirectAccessBit |
|
DirectAccessBit |
|
||||||
MaskPacketAccessBit |
|
MaskPacketAccessBit |
|
||||||
MaskAlignedBit),
|
MaskAlignedBit),
|
||||||
Flags = Flags0 | FlagsLinearAccessBit | FlagsLvalueBit | FlagsRowMajorBit
|
Flags = (Flags0 | FlagsLinearAccessBit | FlagsLvalueBit | FlagsRowMajorBit)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user