Show
Ignore:
Timestamp:
08/13/09 15:58:32 (15 years ago)
Author:
vbarta
Message:

using shared_ptr in UI (optionally so far; loading & saving Array<T *> still works but should be phased out); testsuite run leaks down from 8822 to 480 bytes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/test_kalman.cpp

    r477 r527  
    8282 
    8383        // EKF 
    84         bilinfn fxu ( A, B ); 
    85         bilinfn hxu ( C, D ); 
     84        shared_ptr<bilinfn> fxu = new bilinfn ( A, B ); 
     85        shared_ptr<bilinfn> hxu = new bilinfn ( C, D ); 
    8686        EKFCh KFE; 
    87         KFE.set_parameters ( &fxu, &hxu, Q, R ); 
     87        KFE.set_parameters ( fxu, hxu, Q, R ); 
    8888        KFE.set_est ( mu0, chmat ( P0 ) ); 
    8989        const epdf& KFEep = KFE.posterior();