diff --git a/example/linear_algebra.cpp b/example/linear_algebra.cpp index 98ccf19b..24a0be07 100644 --- a/example/linear_algebra.cpp +++ b/example/linear_algebra.cpp @@ -33,7 +33,7 @@ template std::ostream& operator<<(std::ostream& os, const std::math::vector& v) { os << "|"; - for (auto i = 0U; i < v.size(); ++i) { + for (auto i = 0U; i < v.size(); ++i) { os << fmt::format(" {:>9}", v(i)); } os << " |"; @@ -43,9 +43,9 @@ std::ostream& operator<<(std::ostream& os, const std::math::vector& v) template std::ostream& operator<<(std::ostream& os, const std::math::matrix& v) { - for (auto i = 0U; i < v.rows(); ++i) { + for (auto i = 0U; i < v.rows(); ++i) { os << "|"; - for (auto j = 0U; j < v.columns(); ++j) { + for (auto j = 0U; j < v.columns(); ++j) { os << fmt::format(" {:>9}", v(i, j)); } os << (i != v.rows() - 1U ? " |\n" : " |"); @@ -54,15 +54,14 @@ std::ostream& operator<<(std::ostream& os, const std::math::matrix& v) } -using namespace std::math; using namespace units::physical; using namespace units::physical::si::literals; template -using vector = fs_vector; +using vector = std::math::fs_vector; template -using matrix = fs_matrix; +using matrix = std::math::fs_matrix; void vector_of_quantity_add()