Changeset 728 for library/bdm/base/user_info.cpp
- Timestamp:
- 11/17/09 00:54:28 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/user_info.cpp
r565 r728 198 198 : element.add ( name, Setting::TypeList ); 199 199 200 Setting &tag= set.add ( Setting::TypeString ); 201 tag ="matrix"; 202 200 203 Setting &cols = set.add ( Setting::TypeInt ); 201 204 cols = matrix.cols(); … … 260 263 Setting &elements = link.result[2 + data_offset]; 261 264 262 assert_type ( cols_setting, Setting::TypeInt ); 263 assert_type ( rows_setting, Setting::TypeInt ); 264 assert_type ( elements, Setting::TypeArray ); 265 // vvv ----- not working in matlab!! 266 //assert_type ( cols_setting, Setting::TypeInt ); 267 //assert_type ( rows_setting, Setting::TypeInt ); 268 //assert_type ( elements, Setting::TypeArray ); 265 269 266 270 int cols = cols_setting; 267 271 int rows = rows_setting; 272 int elems = elements.getLength(); 268 273 269 274 if ( cols < 0 || rows < 0 ) 270 275 throw UISettingException ( "UIException: the dimensions of a matrix has to be non-negative.", link.result ); 271 276 272 if ( elem ents.getLength()!= cols * rows )277 if ( elems != cols * rows ) 273 278 throw UISettingException ( "UIException: the count of the matrix elements is incompatible with matrix dimension.", elements ); 274 279