Function vector_set_all (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
void o2scl::vector_set_all(size_t N, vec_t &src, data_t val)

Set the first N entries in a vector to a particular value.

template<class vec_t, class data_t>
void o2scl::vector_set_all(vec_t &src, data_t val)

Set all entries in a vector to a particular value.