working on tensor class

This commit is contained in:
2024-04-03 18:43:55 +02:00
parent c67549a296
commit 80f915946b
3 changed files with 150 additions and 15 deletions

17
t.cc
View File

@@ -3183,7 +3183,7 @@ cin>>d>>n;
cout <<simplicial(d,n)<<" "<<binom(n+d-1,d)<<endl;
}
if(1)
if(0)
{
NRVec<int> d({6,2,1,4,3,5});
d.copyonwrite();
@@ -3191,4 +3191,19 @@ netsort(d.size(),&d[0]);
cout <<d;
}
if(1)
{
INDEXGROUP g;
g.number=3;
g.symmetry= -1;
g.offset=1;
g.range=3;
Tensor<double> epsilon(g);
cout <<epsilon.size()<<endl;
//cout <<epsilon(3,2,1)<<endl;
}
}