Changeset 37 for tests/test0.cpp

Show
Ignore:
Timestamp:
03/14/08 18:11:21 (16 years ago)
Author:
smidl
Message:

Matrix in Cholesky decomposition, Square-root Kalman and many bug fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/test0.cpp

    r35 r37  
    22#include "../bdm/stat/libBM.h" 
    33#include "../bdm/math/libDC.h" 
     4#include "../bdm/math/chmat.h" 
    45 
    56using namespace itpp; 
     
    1112int main() 
    1213{ 
    13  
    1414        RV th = RV ( "1 2","{a b }","1 1","0 0"); 
    1515        RV r = RV ( "3 4" ); 
     
    3838        ld.inv(Il); //  
    3939        mat I = Il.to_mat()*ld.to_mat(); 
    40                 cout << "ld:"<<Il.to_mat() << "eye:"<< I <<endl; 
     40        cout << "ld:"<<Il.to_mat() << "eye:"<< I <<endl; 
    4141 
    4242        cout << "Test ldform()"<<endl; 
     
    4747        cout << "ld:" << lV << "eye:"<< V*(ilV.to_mat()) <<endl; 
    4848 
     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         
    4955 
    5056        //Exit program: