Show
Ignore:
Timestamp:
11/25/09 12:46:08 (15 years ago)
Author:
mido
Message:

a few moves of code from h to cpp, however, only part of the whole library is done

Files:
1 modified

Legend:

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

    r737 r738  
    171171 
    172172public: 
    173         void step() { 
    174                 yt2rgr.store_data ( yt ); // y is now history 
    175                 ut2rgr.filldown ( ut, rgr ); 
    176                 yt2rgr.filldown ( yt, rgr ); 
    177                 yt = ipdf->samplecond ( rgr ); 
    178                 ut2rgr.store_data ( ut ); //u is now history 
    179         } 
    180         void getdata ( vec &dt_out ) const { 
    181                 bdm_assert_debug ( dt_out.length() >= utsize + ytsize, "Short output vector" ); 
    182                 dt_out.set_subvector ( 0, yt ); 
    183                 dt_out.set_subvector ( ytsize, ut ); 
    184         } 
     173        void step(); 
     174 
     175        void getdata ( vec &dt_out ) const; 
     176 
    185177        void write ( const vec &ut0 ) { 
    186178                ut = ut0; 
     
    350342        } 
    351343 
    352         virtual void step() { 
    353                 vec imc ( IM->dimensionc() ); 
    354                 imc.set_subvector ( 0, xt ); 
    355                 u2imc.filldown ( ut, imc ); 
    356                 xt = IM->samplecond ( imc ); 
    357  
    358                 vec omc ( OM->dimensionc() ); 
    359                 omc.set_subvector ( 0, xt ); 
    360                 u2omc.filldown ( ut, omc ); 
    361                 vec yt; 
    362                 yt = OM->samplecond ( omc ); 
    363                 //fill all data 
    364                 dt.set_subvector ( 0, yt ); 
    365                 dt.set_subvector ( yt.length(), xt ); 
    366                 dt.set_subvector ( ytsize, ut ); 
    367         } 
     344        virtual void step(); 
    368345 
    369346        //! set parameters