Show
Ignore:
Timestamp:
11/17/09 00:54:28 (15 years ago)
Author:
smidl
Message:

logger now has ability to store settings - used in estimator. New mexfunction epdf_mean

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/user_info.cpp

    r565 r728  
    198198                       : element.add ( name, Setting::TypeList ); 
    199199 
     200                                   Setting &tag= set.add ( Setting::TypeString ); 
     201                                   tag ="matrix"; 
     202                                    
    200203        Setting &cols = set.add ( Setting::TypeInt ); 
    201204        cols = matrix.cols(); 
     
    260263                Setting &elements = link.result[2 + data_offset]; 
    261264 
    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 ); 
    265269 
    266270                int cols = cols_setting; 
    267271                int rows = rows_setting; 
     272                int elems = elements.getLength(); 
    268273 
    269274                if ( cols < 0 || rows < 0 ) 
    270275                        throw UISettingException ( "UIException: the dimensions of a matrix has to be non-negative.", link.result ); 
    271276 
    272                 if ( elements.getLength() != cols * rows ) 
     277                if ( elems != cols * rows ) 
    273278                        throw UISettingException ( "UIException: the count of the matrix elements is incompatible with matrix dimension.", elements ); 
    274279