Changeset 176 for bdm/stat/libBM.cpp
- Timestamp:
- 10/09/08 11:32:12 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.cpp
r175 r176 91 91 // } 92 92 93 RV RV::subselect ( ivecind ) const {93 RV RV::subselect (const ivec &ind ) const { 94 94 RV ret; 95 95 ret.init ( ids ( ind ), names ( to_Arr ( ind ) ), sizes ( ind ), times ( ind ) ); … … 99 99 void RV::t ( int delta ) { times += delta;} 100 100 101 RV RV::operator() ( ivecind ) const {101 RV RV::operator() (const ivec &ind ) const { 102 102 RV ret; 103 103 if ( ind.length() >0 ) { … … 140 140 } 141 141 142 ivec RV::dataind ( RVrv2 ) const {142 ivec RV::dataind (const RV &rv2 ) const { 143 143 ivec res ( 0 ); 144 144 if ( rv2.count()>0 ) { … … 155 155 } 156 156 157 RV RV::subt ( const RV rv2 ) const {157 RV RV::subt ( const RV &rv2 ) const { 158 158 ivec res = this->findself ( rv2 ); // nonzeros 159 159 ivec valid = itpp::find ( res == -1 ); //-1 => value not found => it remains