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