Legend:
- Unmodified
- Added
- Removed
-
libBM.h
r8 r12 25 25 */ 26 26 class RV { 27 int len;27 int size,len; 28 28 ivec ids; 29 29 ivec sizes; … … 46 46 47 47 //! Return length (number of scalars) of the RV. 48 int length(); 48 int count() {return size;} 49 //TODO why not inline and later?? 50 49 51 //! Find indexes of another rv in self 50 ivec rvfind(RV rv2);52 ivec find(RV rv2); 51 53 //! Add (concat) another variable to the current one 52 RV rvadd(RV rv2);54 RV add(RV rv2); 53 55 //! Subtract another variable from the current one 54 RV rvsubt(RV rv2);56 RV subt(RV rv2); 55 57 //! Select only variables at indeces ind 56 RV rvsubselect(ivec ind);58 RV subselect(ivec ind); 57 59 //! Select only variables at indeces ind 58 60 RV operator()(ivec ind); … … 110 112 }; 111 113 114 115 112 116 #endif // BM_H