Template Function swap

Function Documentation

template<typename T, typename S>
void swap(vector<T> &x, vector<T> &y, S beta)

interchanges two vectors, with a factor y <&#8212; x/beta and x <&#8212; -beta*y