fixed bug in nrvec::concatme

This commit is contained in:
2022-06-21 17:33:16 +02:00
parent e8641c2833
commit 2621f444e1
2 changed files with 17 additions and 4 deletions

13
t.cc
View File

@@ -2539,7 +2539,7 @@ cout<<"big "<<xx1<<endl;
cout << "TEST "<<(xx<xx1) <<" "<<(xx>xx2) <<endl;
}
if(1)
if(0)
{
int seed;
int f=open("/dev/random",O_RDONLY);
@@ -2574,6 +2574,15 @@ cout <<test;
cout <<"Error = "<<(expitszsz-test).norm()<<endl;
}
if(1)
{
NRVec<double> x({1,2,3});
NRVec<double> y({4,5,6});
//cout <<x.concat(y);
x.append(10.);
cout <<x;
x.concatme(y);
cout <<x;
}
}