mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix printing of 1 based arrays
This commit is contained in:
parent
af25893a77
commit
b46ec8dc7b
@ -600,8 +600,8 @@ namespace ngcore
|
||||
FlatArray<T> View (FlatArray<T> fa) { return fa; }
|
||||
|
||||
/// print array
|
||||
template <class T>
|
||||
inline ostream & operator<< (ostream & s, const FlatArray<T> & a)
|
||||
template <class T, class TIND>
|
||||
inline ostream & operator<< (ostream & s, const FlatArray<T, TIND> & a)
|
||||
{
|
||||
for (auto i : a.Range())
|
||||
s << i << ": " << a[i] << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user