Function vector_swap_double (o2scl)¶
- 
template<class vec_t, class vec2_t>
 void o2scl::vector_swap_double(size_t N, vec_t &v1, vec2_t &v2)¶
- Swap of of the first N elements of two double-precision vectors. - This function swaps the elements of - v1and- v2, one element at a time.
- 
template<class vec_t, class vec2_t>
 void o2scl::vector_swap_double(vec_t &v1, vec2_t &v2)¶
- Swap of all the elements in two double-precision vectors. - This function swaps the elements of - v1and- v2, one element at a time.- Note - It is better to use - std::swapthan this function. This function is provided for use in cases where one is using vector types which do not provide a- std::swapmethod.
- 
template<class vec_t>
 void o2scl::vector_swap_double(vec_t &v, size_t i, size_t j)¶
- Swap two elements in a double-precision vector. - This function swaps the element - iand element- jof vector- v1.- This function is used in o2scl_linalg::QRPT_decomp() .