diff --git a/MLPP/LinAlg/LinAlg.cpp b/MLPP/LinAlg/LinAlg.cpp index 8e1c386..2c9ab5a 100644 --- a/MLPP/LinAlg/LinAlg.cpp +++ b/MLPP/LinAlg/LinAlg.cpp @@ -77,13 +77,13 @@ namespace MLPP{ C[i].resize(B[0].size()); } - for(int i = 0; i < A.size(); i++){ - for(int k = 0; k < B.size(); k++){ - for(int j = 0; j < B[0].size(); j++){ - C[i][j] += A[i][k] * B[k][j]; + for(int i = 0; i < A.size(); i++){ + for(int k = 0; k < B.size(); k++){ + for(int j = 0; j < B[0].size(); j++){ + C[i][j] += A[i][k] * B[k][j]; + } } } - } return C; }