From 1fa98a75e61101e7d2ce219dae432c3544bd687a Mon Sep 17 00:00:00 2001 From: Victoriya Fedotova Date: Fri, 17 Jan 2025 05:03:18 -0800 Subject: [PATCH] Fix min, max and sum_squares computations in low order moments --- .../src/algorithms/low_order_moments/low_order_moments_impl.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/daal/src/algorithms/low_order_moments/low_order_moments_impl.i b/cpp/daal/src/algorithms/low_order_moments/low_order_moments_impl.i index a1120b795ec..b85d3261374 100755 --- a/cpp/daal/src/algorithms/low_order_moments/low_order_moments_impl.i +++ b/cpp/daal/src/algorithms/low_order_moments/low_order_moments_impl.i @@ -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