From 02453a931b50f3087d82e45bfe58e92357219479 Mon Sep 17 00:00:00 2001 From: wrcorcoran Date: Wed, 25 Sep 2024 20:58:59 -0700 Subject: [PATCH] formatting --- include/CXXGraph/Graph/Algorithm/Pow_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/CXXGraph/Graph/Algorithm/Pow_impl.hpp b/include/CXXGraph/Graph/Algorithm/Pow_impl.hpp index c38b840b..69678045 100644 --- a/include/CXXGraph/Graph/Algorithm/Pow_impl.hpp +++ b/include/CXXGraph/Graph/Algorithm/Pow_impl.hpp @@ -38,8 +38,10 @@ std::vector> matMult(const std::vector> &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( + "Matrix must have valid dimensions and be at least 1x1."); } int n = static_cast(a.size()); // N x N matrix