Changeset 64
Legend:
 Unmodified
 Added
 Removed

trunk/src/vector.cc
r63 r64 126 126 } 127 127 128 129 130 131 std::pair<u_int,u_int> vector::minmax_index() const 132 { 133 size_t min_index=0; 134 size_t max_index=0; 135 void gsl_vector_minmax_index (const gsl_vector * v_, size_t * min_index, size_t * max_index); 136 return std::pair<u_int,u_int>(min_index, max_index); 137 } 138 139 140 128 141 //Peter, add default checking all elements using GSL 129 142 std::pair<u_int,u_int> vector::minmax_index(const std::vector<u_int>& subset ) const 
trunk/src/vector.h
r63 r64 89 89 /// 90 90 inline gsl_vector* gsl_vector_pointer(void) { return v_; } 91 92 ///This function returns the indices of the minimum and maximum values in 93 ///the vector, storing them in imin and imax. When 94 ///there are several equal minimum or maximum elements then the lowest 95 ///indices are returned. @return Index corresponding to the smallest 96 ///and largest value. 97 /// 98 std::pair<u_int,u_int> vector::minmax_index() const; 91 99 92 100 ///This function returns the indices of the minimum and maximum values in … … 96 104 ///and largest value. 97 105 /// 98 std::pair< u_int,u_int> vector::minmax_index(const std::vector<u_int>& subset ) const;106 std::pair<size_t,size_t> vector::minmax_index(const std::vector<size_t>& subset ) const; 99 107 100 108 ///
Note: See TracChangeset
for help on using the changeset viewer.