Changeset 588
- Timestamp:
- 08/28/09 09:06:54 (15 years ago)
- Location:
- library
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r586 r588 691 691 692 692 //! log this vector 693 virtual void logit (int id, const vec &v) = 0;693 virtual void logit (int id, const vec &v) {bdm_error("Not implemented");}; 694 694 //! log this double 695 virtual void logit (int id, const double &d) = 0;695 virtual void logit (int id, const double &d) {bdm_error("Not implemented");}; 696 696 697 697 //! Shifts storage position for another time step. 698 virtual void step() = 0;698 virtual void step() {bdm_error("Not implemneted");}; 699 699 700 700 //! Finalize storing information -
library/bdm/mex/mex_parser.h
r536 r588 103 103 mexErrMsgTxt ( "Given mxArray is not a cell." ); 104 104 }; 105 for ( u int i = 0; i < mxGetNumberOfElements ( mxarray ); i++ ) {105 for ( unsigned int i = 0; i < mxGetNumberOfElements ( mxarray ); i++ ) { 106 106 mxArray *value = mxGetCell ( mxarray, i ); 107 107 if ( mxIsChar ( value ) ) { -
library/tests/LQG_test.cpp
r586 r588 14 14 15 15 reg.redesign(); 16 CHECK_CLOSE(reg.apply("0.5, 1.1","0.0")(0) /*convert vec to double*/, -0.248528137234392, 0.0001); 16 double reg_apply=reg.apply("0.5, 1.1","0.0")(0); /*convert vec to double*/ 17 CHECK_CLOSE(reg_apply, -0.248528137234392, 0.0001); 17 18 } 18 19