Brining in changes (#93)

This commit is contained in:
Erik Fröjdh
2024-11-11 19:59:55 +01:00
committed by GitHub
parent d8d1f0c517
commit 349e3af8e1
23 changed files with 674 additions and 140 deletions

View File

@ -156,4 +156,18 @@ template <typename T, int64_t Ndim> void NDView<T, Ndim>::print_all() const {
}
}
template <typename T, int64_t Ndim>
std::ostream& operator <<(std::ostream& os, const NDView<T, Ndim>& arr){
for (auto row = 0; row < arr.shape(0); ++row) {
for (auto col = 0; col < arr.shape(1); ++col) {
os << std::setw(3);
os << arr(row, col) << " ";
}
os << "\n";
}
return os;
}
} // namespace aare