Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wrcorcoran committed Sep 26, 2024
1 parent 1d7dcf9 commit 02453a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/CXXGraph/Graph/Algorithm/Pow_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ std::vector<std::vector<T>> matMult(const std::vector<std::vector<T>> &a,
"Type T must be an arithmetic type");

// two square matrices both of size N x N where N > 0
if (a.empty() || a[0].size() != b.size() || a.size() != a[0].size() || b.size() != b[0].size()) {
throw std::invalid_argument("Matrix must have valid dimensions and be at least 1x1.");
if (a.empty() || a[0].size() != b.size() || a.size() != a[0].size() ||
b.size() != b[0].size()) {
throw std::invalid_argument(

Check warning on line 43 in include/CXXGraph/Graph/Algorithm/Pow_impl.hpp

View check run for this annotation

Codecov / codecov/patch

include/CXXGraph/Graph/Algorithm/Pow_impl.hpp#L43

Added line #L43 was not covered by tests
"Matrix must have valid dimensions and be at least 1x1.");
}

int n = static_cast<int>(a.size()); // N x N matrix
Expand Down

0 comments on commit 02453a9

Please sign in to comment.