Legend:
- Unmodified
- Added
- Removed
-
libBM.cpp
r8 r12 9 9 void RV::init( ivec in_ids, Array<std::string> in_names, ivec in_sizes, ivec in_times, ivec in_obs ) { 10 10 // 11 int i; 11 12 len = in_ids.length(); 12 13 //PRUDENT_MODE … … 25 26 times = in_times; 26 27 obs = in_obs; 28 size = 0; 29 for(i=0;i<len;i++){size+=sizes(i);} 27 30 }; 28 31 … … 32 35 33 36 RV::RV () {}; 34 35 inline int RV::length () {return len;};36 37 37 38 RV::RV ( ivec in_ids ) { … … 48 49 } 49 50 50 RV RV:: rvsubselect(ivec ind){51 RV RV::subselect(ivec ind){ 51 52 return RV(ids(ind), names(to_Arr(ind)), sizes(ind), times(ind), obs(ind)); 52 53 }