Show
Ignore:
Timestamp:
11/10/09 11:03:09 (15 years ago)
Author:
mido
Message:

_m changed to _mat

emix.cfg prepared, but it is not yet debugged!

Files:
1 modified

Legend:

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

    r712 r713  
    429429 
    430430        //! Returns \param N samples from the density conditioned on \c cond, \f$x \sim epdf(rv|cond)\f$. \param cond is numeric value of \c rv 
    431         virtual mat samplecond_m ( const vec &cond, int N ); 
     431        virtual mat samplecond_mat ( const vec &cond, int N ); 
    432432 
    433433        //! Shortcut for conditioning and evaluation of the internal epdf. In some cases,  this operation can be implemented efficiently. 
     
    438438 
    439439        //! Matrix version of evallogcond 
    440         virtual vec evallogcond_m ( const mat &Yt, const vec &cond ) { 
     440        virtual vec evallogcond_mat ( const mat &Yt, const vec &cond ) { 
    441441                vec v ( Yt.cols() ); 
    442442                for ( int i = 0; i < Yt.cols(); i++ ) { 
     
    447447 
    448448        //! Array<vec> version of evallogcond 
    449         virtual vec evallogcond_m ( const Array<vec> &Yt, const vec &cond ) { 
     449        virtual vec evallogcond_mat ( const Array<vec> &Yt, const vec &cond ) { 
    450450                bdm_error ( "Not implemented" ); 
    451451                return vec(); 
     
    534534 
    535535        //! Returns N samples, \f$ [x_1 , x_2 , \ldots \ \f$  from density \f$ f_x(rv)\f$ 
    536         virtual mat sample_m ( int N ) const; 
     536        virtual mat sample_mat ( int N ) const; 
    537537 
    538538        //! Compute log-probability of argument \c val 
     
    544544 
    545545        //! Compute log-probability of multiple values argument \c val 
    546         virtual vec evallog_m ( const mat &Val ) const; 
     546        virtual vec evallog_mat ( const mat &Val ) const; 
    547547 
    548548        //! Compute log-probability of multiple values argument \c val 
    549         virtual vec evallog_m ( const Array<vec> &Avec ) const; 
     549        virtual vec evallog_mat ( const Array<vec> &Avec ) const; 
    550550 
    551551        //! Return conditional density on the given RV, the remaining rvs will be in conditioning 
     
    669669        double evallogcond ( const vec &val, const vec &cond ); 
    670670        //! Efficient version of evallogcond for matrices 
    671         virtual vec evallogcond_m ( const mat &Dt, const vec &cond ); 
     671        virtual vec evallogcond_mat ( const mat &Dt, const vec &cond ); 
    672672        //! Efficient version of evallogcond for Array<vec> 
    673         virtual vec evallogcond_m ( const Array<vec> &Dt, const vec &cond ); 
     673        virtual vec evallogcond_mat ( const Array<vec> &Dt, const vec &cond ); 
    674674        //! Efficient version of samplecond 
    675         virtual mat samplecond_m ( const vec &cond, int N ); 
     675        virtual mat samplecond_mat ( const vec &cond, int N ); 
    676676         
    677677        void validate() { 
     
    11171117 
    11181118        //! Matrix version of logpred 
    1119         vec logpred_m ( const mat &Yt ) const { 
     1119        vec logpred_mat ( const mat &Yt ) const { 
    11201120                vec tmp ( Yt.cols() ); 
    11211121                for ( int i = 0; i < Yt.cols(); i++ ) { 
     
    12531253 
    12541254template<class EPDF> 
    1255 mat pdf_internal<EPDF>::samplecond_m ( const vec &cond, int N ) { 
     1255mat pdf_internal<EPDF>::samplecond_mat ( const vec &cond, int N ) { 
    12561256        condition ( cond ); 
    12571257        mat temp ( dimension(), N ); 
     
    12741274 
    12751275template<class EPDF> 
    1276 vec pdf_internal<EPDF>::evallogcond_m ( const mat &Yt, const vec &cond ) { 
     1276vec pdf_internal<EPDF>::evallogcond_mat ( const mat &Yt, const vec &cond ) { 
    12771277        condition ( cond ); 
    1278         return iepdf.evallog_m ( Yt ); 
     1278        return iepdf.evallog_mat ( Yt ); 
    12791279} 
    12801280 
    12811281template<class EPDF> 
    1282 vec pdf_internal<EPDF>::evallogcond_m ( const Array<vec> &Yt, const vec &cond ) { 
     1282vec pdf_internal<EPDF>::evallogcond_mat ( const Array<vec> &Yt, const vec &cond ) { 
    12831283        condition ( cond ); 
    1284         return iepdf.evallog_m ( Yt ); 
     1284        return iepdf.evallog_mat ( Yt ); 
    12851285} 
    12861286