tensor: tested full contractions

This commit is contained in:
2025-11-06 16:02:09 +01:00
parent b24cd24747
commit 7ef2d1b73d
2 changed files with 11 additions and 5 deletions

View File

@@ -590,6 +590,7 @@ std::istream & operator>>(std::istream &s, Tensor<T> &x)
s>>x.shape;
s>>x.names;
x.data.resize(x.calcsize()); x.calcrank();
if(x.rank()==0) {s>>x.data[0]; return s;}
FLATINDEX I(x.rank());
for(LA_largeindex i=0; i<x.data.size(); ++i)
{