Fix a case where 0-1 leads to Dynamic instead of 0.

This commit is contained in:
Gael Guennebaud 2014-11-26 15:03:22 +01:00
parent 09e992ce9f
commit 8e61a7aab6

View File

@ -185,7 +185,7 @@ class CoeffBasedProduct
{
PacketScalar res;
internal::product_packet_impl<Flags&RowMajorBit ? RowMajor : ColMajor,
Unroll ? InnerSize-1 : Dynamic,
Unroll ? (InnerSize==0 ? 0 : InnerSize-1) : Dynamic,
_LhsNested, _RhsNested, PacketScalar, LoadMode>
::run(row, col, m_lhs, m_rhs, res);
return res;