Update file GeneralMatrixVector.h

(cherry picked from commit 283dec7f257d463ff66d688cda17f78118eb3caa)
This commit is contained in:
Charles Schlosser 2023-11-21 03:49:04 +00:00
parent 23886fd7db
commit 63291e34bf

View File

@ -359,9 +359,10 @@ EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void general_matrix_vector_product<Index,Lhs
HasQuarter = (int)ResPacketSizeQuarter < (int)ResPacketSizeHalf HasQuarter = (int)ResPacketSizeQuarter < (int)ResPacketSizeHalf
}; };
const Index fullColBlockEnd = cols & (-LhsPacketSize); using UnsignedIndex = typename make_unsigned<Index>::type;
const Index halfColBlockEnd = cols & (-LhsPacketSizeHalf); const Index fullColBlockEnd = LhsPacketSize * (UnsignedIndex(cols) / LhsPacketSize);
const Index quarterColBlockEnd = cols & (-LhsPacketSizeQuarter); const Index halfColBlockEnd = LhsPacketSizeHalf * (UnsignedIndex(cols) / LhsPacketSizeHalf);
const Index quarterColBlockEnd = LhsPacketSizeQuarter * (UnsignedIndex(cols) / LhsPacketSizeQuarter);
Index i=0; Index i=0;
for(; i<n8; i+=8) for(; i<n8; i+=8)