Function vector_max (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
void o2scl::vector_max(size_t n, const vec_t &data, size_t &index, data_t &val)

Compute the maximum of the first n elements of a vector.