Show
Ignore:
Timestamp:
08/12/09 09:27:40 (15 years ago)
Author:
vbarta
Message:

returning shared pointers from epdf::marginal & epdf::condition; testsuite run leaks down from 8402 to 6510 bytes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r502 r504  
    317317 
    318318                //! Return conditional density on the given RV, the remaining rvs will be in conditioning 
    319                 virtual mpdf* condition (const RV &rv) const  { 
    320                         it_warning ("Not implemented"); 
    321                         return NULL; 
    322                 } 
     319                virtual shared_ptr<mpdf> condition (const RV &rv) const; 
    323320 
    324321                //! Return marginal density on the given RV, the remainig rvs are intergrated out 
    325                 virtual epdf* marginal (const RV &rv) const { 
    326                         it_warning ("Not implemented"); 
    327                         return NULL; 
    328                 } 
     322                virtual shared_ptr<epdf> marginal (const RV &rv) const; 
    329323 
    330324                //! return expected value