Changeset 665 for library/bdm/math/functions.h
- Timestamp:
- 10/19/09 22:24:45 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/math/functions.h
r620 r665 84 84 vec eval ( const vec &cond ) { 85 85 bdm_assert_debug ( cond.length() == ( dimx + dimu ), "linfn::eval Wrong cond." ); 86 return eval ( cond ( 0, dimx - 1 ), cond ( dimx, dimx + dimu - 1 ) );//-1 = end (in matlab) 86 if (dimu>0){ 87 return eval ( cond ( 0, dimx - 1 ), cond ( dimx, dimx + dimu - 1 ) );//-1 = end (in matlab) 88 } else { 89 return eval ( cond ( 0, dimx - 1 ), vec(0) );//-1 = end (in matlab) 90 } 91 87 92 } 88 93