formatting od rank 0 tensor output with endl

This commit is contained in:
2026-01-28 15:01:04 +01:00
parent 1d53afd257
commit 375e690296

View File

@@ -631,7 +631,7 @@ std::ostream & operator<<(std::ostream &s, const Tensor<T> &x)
{
s<<x.shape;
s<<x.names;
if(x.rank()==0) {s<<x.data[0]; return s;}
if(x.rank()==0) {s<<x.data[0]<<std::endl; return s;}
sout= &s;
x.constloopover(&outputcallback<T>);
return s;