Changeset 513

Show
Ignore:
Timestamp:
08/12/09 17:09:58 (15 years ago)
Author:
smidl
Message:

quickies:
no assert in mpdf::_rvc
mmix accepts empty Coms

Location:
library/bdm
Files:
2 modified

Legend:

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

    r508 r513  
    453453                } 
    454454                RV _rvc() { 
    455                         it_assert_debug (isnamed(), ""); 
    456455                        return rvc; 
    457456                } 
  • library/bdm/stat/emix.h

    r507 r513  
    479479                w=w0;    
    480480 
    481                 set_rv(Coms(0)->_rv()); 
    482                 dummy_epdf.set_parameters(Coms(0)->_rv()._dsize()); 
    483                 set_rvc(Coms(0)->_rvc()); 
    484                 dimc = Coms(0)->_rvc()._dsize(); 
     481                if (Coms0.length()>0){ 
     482                        set_rv(Coms(0)->_rv()); 
     483                        dummy_epdf.set_parameters(rv._dsize()); 
     484                        set_rvc(Coms(0)->_rvc()); 
     485                        dimc = rvc._dsize(); 
     486                } 
    485487        } 
    486488        double evallogcond (const vec &dt, const vec &cond) {