Skip to content
Snippets Groups Projects
Commit bc7acf9f authored by Elias Pipping's avatar Elias Pipping Committed by Max Kahnt
Browse files

Remove superfluous braces

parent 4beebd29
No related branches found
No related tags found
No related merge requests found
...@@ -158,12 +158,10 @@ namespace MatrixVector { ...@@ -158,12 +158,10 @@ namespace MatrixVector {
typedef Dune::FieldMatrix<T, n, m> B; typedef Dune::FieldMatrix<T, n, m> B;
typedef Dune::FieldMatrix<T, m, k> C; typedef Dune::FieldMatrix<T, m, k> C;
static void addProduct(A& a, const B& b, const C& c) { static void addProduct(A& a, const B& b, const C& c) {
for (size_t row = 0; row < n; ++row) { for (size_t row = 0; row < n; ++row)
for (size_t col = 0; col < k; ++col) { for (size_t col = 0; col < k; ++col)
for (size_t i = 0; i < m; ++i) for (size_t i = 0; i < m; ++i)
a[row][col] += b[row][i] * c[i][col]; a[row][col] += b[row][i] * c[i][col];
}
}
} }
}; };
...@@ -175,12 +173,10 @@ namespace MatrixVector { ...@@ -175,12 +173,10 @@ namespace MatrixVector {
typedef Dune::FieldMatrix<T, n, m> C; typedef Dune::FieldMatrix<T, n, m> C;
typedef Dune::FieldMatrix<T, m, k> D; typedef Dune::FieldMatrix<T, m, k> D;
static void addProduct(A& a, const T& b, const C& c, const D& d) { static void addProduct(A& a, const T& b, const C& c, const D& d) {
for (size_t row = 0; row < n; ++row) { for (size_t row = 0; row < n; ++row)
for (size_t col = 0; col < k; ++col) { for (size_t col = 0; col < k; ++col)
for (size_t i = 0; i < m; ++i) for (size_t i = 0; i < m; ++i)
a[row][col] += b * c[row][i] * d[i][col]; a[row][col] += b * c[row][i] * d[i][col];
}
}
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment