From c6627ed20f33cf0429cb8191a4b56f54ef8b4fb0 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sun, 10 May 2020 22:40:54 +0200 Subject: [PATCH] Compilation errors in LA example fixed --- example/linear_algebra.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/linear_algebra.cpp b/example/linear_algebra.cpp index b93794c6..aff85148 100644 --- a/example/linear_algebra.cpp +++ b/example/linear_algebra.cpp @@ -33,7 +33,7 @@ template std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector& v) { os << "|"; - for (size_t i = 0; i < v.size(); ++i) { + for (auto i = 0; i < v.size(); ++i) { os << fmt::format(" {:>9}", v(i)); } os << " |"; @@ -43,9 +43,9 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector template std::ostream& operator<<(std::ostream& os, const std::experimental::math::matrix& v) { - for (size_t i = 0; i < v.rows(); ++i) { + for (auto i = 0; i < v.rows(); ++i) { os << "|"; - for (size_t j = 0; j < v.columns(); ++j) { + for (auto j = 0; j < v.columns(); ++j) { os << fmt::format(" {:>9}", v(i, j)); } os << (i != v.rows() - 1 ? " |\n" : " |");