mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-12 00:59: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; }
|
FlatArray<T> View (FlatArray<T> fa) { return fa; }
|
||||||
|
|
||||||
/// print array
|
/// print array
|
||||||
template <class T>
|
template <class T, class TIND>
|
||||||
inline ostream & operator<< (ostream & s, const FlatArray<T> & a)
|
inline ostream & operator<< (ostream & s, const FlatArray<T, TIND> & a)
|
||||||
{
|
{
|
||||||
for (auto i : a.Range())
|
for (auto i : a.Range())
|
||||||
s << i << ": " << a[i] << "\n";
|
s << i << ": " << a[i] << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user