diff --git a/src/shogun/preprocessor/LogPlusOne.cpp b/src/shogun/preprocessor/LogPlusOne.cpp index c9dcf97a2cf..b8d66073d1f 100644 --- a/src/shogun/preprocessor/LogPlusOne.cpp +++ b/src/shogun/preprocessor/LogPlusOne.cpp @@ -45,9 +45,9 @@ bool CLogPlusOne::save(FILE* f) SGMatrix CLogPlusOne::apply_to_matrix(SGMatrix matrix) { - for (auto i : range(matrix.num_cols)) + for (auto j : range(matrix.num_cols)) { - for (auto j : range(matrix.num_rows)) + for (auto i : range(matrix.num_rows)) matrix(i, j) = std::log(matrix(i, j) + 1.0); } return matrix;