Function matrix_swap_cols (o2scl)

O2scl : Function List

template<class mat_t, class data_t>
void o2scl::matrix_swap_cols(size_t M, mat_t &m, size_t j1, size_t j2)

Swap the first M rows of two columns in a matrix.

This function swaps the element (i1,j1) and element (i2,j2) of matrix m1.