Changeset 737 for library/bdm/itpp_ext.h
- Timestamp:
- 11/25/09 12:14:38 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/itpp_ext.h
r723 r737 19 19 20 20 namespace itpp { 21 22 21 extern vec empty_vec; 22 23 23 Array<int> to_Arr ( const ivec &indices ); 24 24 ivec linspace ( int from, int to ); … … 33 33 bvec operator< ( const vec &t1, const vec &t2 ); 34 34 35 ivec get_from_bvec (const ivec &v, const bvec &binlist);35 ivec get_from_bvec ( const ivec &v, const bvec &binlist ); 36 36 37 37 // template<class Num_T> … … 106 106 107 107 //! implementation of matlab triu function 108 void triu (mat &A);108 void triu ( mat &A ); 109 109 110 110 //! implementation of Mixtools function randun … … 113 113 double randun(); 114 114 //! implementation of Mixtools function randun 115 vec randun (int n);115 vec randun ( int n ); 116 116 //! implementation of Mixtools function randun 117 mat randun (int n, int m);117 mat randun ( int n, int m ); 118 118 119 119 //! function returns unique entries in input vector \c in 120 ivec unique (const ivec &in);120 ivec unique ( const ivec &in ); 121 121 122 122 //! function returns unique entries of vector \c in that are not present in vector \c base 123 ivec unique_complement (const ivec &in, const ivec &base);123 ivec unique_complement ( const ivec &in, const ivec &base ); 124 124 } 125 125