Changeset 1192 for library/bdm/base

Show
Ignore:
Timestamp:
09/17/10 14:35:13 (14 years ago)
Author:
smidl
Message:

fixes ob ProdBM

Location:
library/bdm/base
Files:
2 modified

Legend:

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

    r1165 r1192  
    210210    rv.dataind ( rv_up, v2v_down, v2v_up ); 
    211211    downsize = v2v_down.length(); 
    212     upsize = v2v_up.length(); 
     212    upsize = rv_up._dsize();//v2v_up.length(); 
    213213} 
    214214 
  • library/bdm/base/bdmbase.h

    r1165 r1192  
    10361036    }; 
    10371037    void connect(const RV &vecrv, const RV & vec1) { 
    1038         bdm_assert(vecrv._dsize()==length(),"Description of this vector, "+ vecrv.to_string() +" does not math it length: " + num2str(length())); 
     1038 
     1039                bdm_assert(vecrv._dsize()==length(),"Description of this vector, "+ vecrv.to_string() +" does not math it length: " + num2str(length())); 
    10391040        dl.set_connection(vecrv,vec1); 
     1041                vecfromlen=vec1._dsize(); 
    10401042        bdm_assert(dl._downsize()==length(), "Rv of this vector, "+vecrv.to_string() +" was not found in given rv: "+vec1.to_string()); 
    10411043    }; 
     1044        void push_to(vec &v_up){ 
     1045                dl.pushup(*this,v_up); 
     1046        } 
     1047        datalink_part& _dl() {return dl;} 
    10421048}; 
    10431049 
     
    13251331         
    13261332        //! Sample from predictor(cond). Implemented as sampling the joint density \f$ f(y_t, \theta_t) \f$ and discarding the sample of \f$ \theta_t \f$. 
    1327         virtual vec samplepred(const vec &cond=empty_vec) const NOT_IMPLEMENTED(empty_vec); 
     1333        virtual vec samplepred(const vec &cond=empty_vec) NOT_IMPLEMENTED(empty_vec); 
    13281334 
    13291335    //! Matrix version of logpred