Changeset 886 for library/tests
- Timestamp:
- 03/29/10 23:01:49 (15 years ago)
- Location:
- library/tests
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/stresssuite/merger_2d_stress.cpp
r721 r886 67 67 it << Name ( "S1" ) << f1->evallog_mat ( Grid ); 68 68 it << Name ( "S2" ) << f2->evallog_mat ( Grid ); 69 cout << ( ( enorm<ldmat>* ) ( MP->_Coms ( 0 ).get() ) )->_R().to_mat() << endl;69 // cout << ( ( enorm<ldmat>* ) ( MP->_Coms ( 0 ).get() ) )->_R().to_mat() << endl; 70 70 } -
library/tests/stresssuite/mixtures_stress.cpp
r766 r886 15 15 mat Var ( 2, 2 ), M ( 1, 2 ); 16 16 for ( i = 0; i < ep._rv().length() - 1; i++ ) { // -1 => last one is the weight 17 ( ( egiw* ) ep ( i ) )->mean_mat ( M, Var );17 ( ( egiw* ) ep.factor ( i ) )->mean_mat ( M, Var ); 18 18 cout << "Mean: " << M << endl << "Variance: " << endl << Var << endl; 19 19 } 20 cout << "Weights: " << ep ( i )->mean() << endl;20 cout << "Weights: " << ep.factor ( i )->mean() << endl; 21 21 } 22 22 -
library/tests/testsuite/epdf_test.cpp
r878 r886 36 36 g1->set_rv ( b ); 37 37 38 Array< const epdf*> coms ( 2 );39 coms ( 0 ) = g0 .get();40 coms ( 1 ) = g1 .get();38 Array<shared_ptr<epdf> > coms ( 2 ); 39 coms ( 0 ) = g0; 40 coms ( 1 ) = g1; 41 41 42 42 eprod p; … … 44 44 // pointers in the array to outlast the eprod instance... 45 45 p.set_parameters ( coms ); 46 p.validate(); 46 47 47 48 CHECK_EQUAL ( vec ( "1 10 10" ), p.mean() );