Skip to content

Commit

Permalink
Fix min, max and sum_squares computations in low order moments (#3047)
Browse files Browse the repository at this point in the history
Adjust number of iterations in a loop to fix "min", "max" and "sum_squares" computations.
  • Loading branch information
Vika-F authored Jan 20, 2025
1 parent c5ccb9e commit 5d3d62c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ Status computeMinMaxAndSumOfSquared(const size_t nFeatures, const size_t nVector
const size_t startRows = iBlock * numRowsInBlock;
const size_t chunkRows = (iBlock < (nBlocks - 1)) ? numRowsInBlock : numRowsInLastBlock;

for (size_t i = startRows; i < chunkRows; i++)
for (size_t i = startRows; i < startRows + chunkRows; i++)
{
PRAGMA_IVDEP
PRAGMA_VECTOR_ALWAYS
Expand Down

0 comments on commit 5d3d62c

Please sign in to comment.