2004-03-17 17:39:07 +01:00
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include "la.h"
|
|
|
|
#include "sparsemat.h"
|
|
|
|
#include "matexp.h"
|
|
|
|
#include "fourindex.h"
|
2006-04-01 06:48:01 +02:00
|
|
|
#include "bitvector.h"
|
2004-03-17 17:39:07 +01:00
|
|
|
|
2006-07-29 21:46:41 +02:00
|
|
|
#ifdef USE_TRACEBACK
|
|
|
|
#include "traceback.h"
|
|
|
|
#endif
|
2004-03-17 17:39:07 +01:00
|
|
|
|
|
|
|
void test(const NRVec<double> &x)
|
|
|
|
{
|
|
|
|
NRMat<double> aa(0.,2,2);
|
|
|
|
NRMat<double> cc(aa);
|
|
|
|
cc.copyonwrite(); cc[0][0]=1.;
|
|
|
|
|
|
|
|
cout << aa << cc <<"\n";
|
|
|
|
cout <<"test x= "<<x<<"\n";
|
|
|
|
}
|
|
|
|
|