Changeset 37 for tests/test0.cpp
- Timestamp:
- 03/14/08 18:11:21 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/test0.cpp
r35 r37 2 2 #include "../bdm/stat/libBM.h" 3 3 #include "../bdm/math/libDC.h" 4 #include "../bdm/math/chmat.h" 4 5 5 6 using namespace itpp; … … 11 12 int main() 12 13 { 13 14 14 RV th = RV ( "1 2","{a b }","1 1","0 0"); 15 15 RV r = RV ( "3 4" ); … … 38 38 ld.inv(Il); // 39 39 mat I = Il.to_mat()*ld.to_mat(); 40 40 cout << "ld:"<<Il.to_mat() << "eye:"<< I <<endl; 41 41 42 42 cout << "Test ldform()"<<endl; … … 47 47 cout << "ld:" << lV << "eye:"<< V*(ilV.to_mat()) <<endl; 48 48 49 cout << "Test logdet()"<<endl; 50 chmat chV(V); 51 cout << "ch:" << chV.to_mat() <<endl; 52 cout << "log(det(V)):"<< chV.logdet() <<endl; 53 cout << "qform : " << chV.qform(ones(2)) <<endl; 54 49 55 50 56 //Exit program: