suport for data preserving in NRVec::resize

This commit is contained in:
2021-06-09 15:33:24 +02:00
parent 74835e5264
commit 5480de6ff2
3 changed files with 86 additions and 28 deletions

4
t.cc
View File

@@ -2146,7 +2146,7 @@ int tot=p.generate_all_lex(printme);
cout <<"generated "<<tot<<endl;
}
if(0)
if(1)
{
int n;
cin >>n >>unitary_n;
@@ -2158,7 +2158,7 @@ if(tot!=partitions(n)) laerror("internal error in partition generation or enumer
if(space_dim!=longpow(unitary_n,n)) {cout<<space_dim<<" "<<ipow(unitary_n,n)<<endl;laerror("integer overflow or internal error in space dimensions");}
}
if(1)
if(0)
{
int n;
cin >>n ;