Show
Ignore:
Timestamp:
09/16/09 14:47:36 (15 years ago)
Author:
smidl
Message:

replace assert_debug by assert in classes interacting with users (from_setting, set_parameters, validate)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/kalman.h

    r605 r620  
    138138                void validate() { 
    139139                        StateSpace<sq_T>::validate(); 
    140                         bdm_assert_debug(est->dimension(), "Statistics and model parameters mismatch"); 
     140                        bdm_assert(est->dimension(), "Statistics and model parameters mismatch"); 
    141141                } 
    142142}; 
     
    386386                         
    387387                        //We can do only 1d now... :( 
    388                         bdm_assert_debug(yrv._dsize()==1, "Only for SISO so far..." ); 
     388                        bdm_assert(yrv._dsize()==1, "Only for SISO so far..." ); 
    389389 
    390390                        // create names for  
     
    463463template<class sq_T> 
    464464void StateSpace<sq_T>::validate(){ 
    465         bdm_assert_debug (A.cols() == dimx, "KalmanFull: A is not square"); 
    466         bdm_assert_debug (B.rows() == dimx, "KalmanFull: B is not compatible"); 
    467         bdm_assert_debug (C.cols() == dimx, "KalmanFull: C is not square"); 
    468         bdm_assert_debug ( (D.rows() == dimy) || (D.cols() == dimu), "KalmanFull: D is not compatible"); 
    469         bdm_assert_debug ( (Q.cols() == dimx) || (Q.rows() == dimx), "KalmanFull: Q is not compatible"); 
    470         bdm_assert_debug ( (R.cols() == dimy) || (R.rows() == dimy), "KalmanFull: R is not compatible"); 
     465        bdm_assert (A.cols() == dimx, "KalmanFull: A is not square"); 
     466        bdm_assert (B.rows() == dimx, "KalmanFull: B is not compatible"); 
     467        bdm_assert (C.cols() == dimx, "KalmanFull: C is not square"); 
     468        bdm_assert ( (D.rows() == dimy) || (D.cols() == dimu), "KalmanFull: D is not compatible"); 
     469        bdm_assert ( (Q.cols() == dimx) || (Q.rows() == dimx), "KalmanFull: Q is not compatible"); 
     470        bdm_assert ( (R.cols() == dimy) || (R.rows() == dimy), "KalmanFull: R is not compatible"); 
    471471} 
    472472