Skip to content

Commit

Permalink
Compilation errors in LA example fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed May 10, 2020
1 parent 09e2411 commit c6627ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/linear_algebra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ template<class ET, class OT>
std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector<ET, OT>& 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 << " |";
Expand All @@ -43,9 +43,9 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector
template<class ET, class OT>
std::ostream& operator<<(std::ostream& os, const std::experimental::math::matrix<ET, OT>& 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" : " |");
Expand Down

0 comments on commit c6627ed

Please sign in to comment.