Changeset 712
- Timestamp:
- 11/09/09 20:03:52 (15 years ago)
- Location:
- library/bdm
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r700 r712 274 274 belong = belong | (ids == rv.id(r)); 275 275 } 276 return times.length()>0 ? min ( times(belong)) : 0;276 return times.length()>0 ? min (get_from_bvec(times,belong)) : 0; 277 277 } 278 278 //!@} -
library/bdm/itpp_ext.cpp
r679 r712 116 116 return temp; 117 117 } 118 119 //! poor man's operator vec(bvec) - copied for svn version of itpp 120 ivec get_from_bvec(const ivec &v, const bvec &binlist){ 121 int size = binlist.size(); 122 it_assert_debug(v.size() == size, "Vec<>::operator()(bvec &): " 123 "Wrong size of binlist vector"); 124 ivec temp(size); 125 int j = 0; 126 for (int i = 0; i < size; ++i) 127 if (binlist(i) == bin(1)) 128 temp(j++) = v(i); 129 temp.set_size(j, true); 130 return temp; 131 } 132 118 133 119 134 //#if 0 -
library/bdm/itpp_ext.h
r679 r712 32 32 33 33 bvec operator< ( const vec &t1, const vec &t2 ); 34 35 ivec get_from_bvec(const ivec &v, const bvec &binlist); 34 36 35 37 // template<class Num_T>