- Timestamp:
- 10/22/08 10:46:38 (16 years ago)
- Location:
- tests
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/CMakeLists.txt
r182 r190 26 26 # BASIC TESTS 27 27 TEST(rv_test) 28 TEST(datalink_test) 28 29 TEST(loggers_test) 29 30 -
tests/merger_iter_test.cpp
r188 r190 11 11 int main() { 12 12 13 RNG_randomize(); 14 13 15 RV x ( "{x }","1" ); 14 16 RV y ( "{y }","1" ); … … 16 18 RV xy=x; xy.add(y); 17 19 18 // enorm<fsqmat> f1 ( xy ); 19 // enorm<fsqmat> f2 ( x ); 20 21 enorm<ldmat> f(xy); 22 f.set_parameters ( "1 1",mat ( "1.2 1; 1 1.2" ) ); 23 24 mpdf* f1=f.condition(x); 25 mpdf* f2=f.condition(y); 26 cout << *(mlnorm<ldmat>*)f1 <<endl; 27 cout << *(mlnorm<ldmat>*)f2 <<endl; 28 29 // f1.set_parameters ( "1 1",mat ( "1.2 1; 1 1.2" ) ); 30 // f2.set_parameters ( "2",mat ( "20" ) ); 20 enorm<fsqmat> f1 ( xy ); 21 enorm<fsqmat> f2 ( x ); 22 23 f1.set_parameters ( "0 0",mat ( "0.5 0; 0 0.5" ) ); 24 f2.set_parameters ( "3",mat ( "0.5" ) ); 31 25 32 26 Array<mpdf* > A ( 2 ); 33 /*mepdf A1(f1);34 mepdf A2(f2); */35 A ( 0 ) = f1;36 A ( 1 ) = f2;27 mepdf A1(f1); 28 mepdf A2(f2); 29 A ( 0 ) =&A1; 30 A ( 1 ) =&A2; 37 31 38 32 int Npoints=100; … … 48 42 merger M ( A ); 49 43 enorm<fsqmat> g0(xy); 50 g0.set_parameters(vec("1 1"),mat("1 00 0; 0 100"));44 g0.set_parameters(vec("1 1"),mat("1 0; 0 1")); 51 45 52 M.set_parameters(1.2,200, 1);46 M.set_parameters(1.2,200,2); 53 47 M.merge(&g0); 54 48 … … 57 51 58 52 vec Res1 = M.evalpdflog_m(Grid); 59 vec Res2 = MP->evalpdflog_m(Grid);53 mat Res2 = ((emix*)MP)->evalpdflog_M(Grid); 60 54 61 55 it_file it("merger_iter_test.it");