Function matrix_swap_rows (o2scl)

O2scl : Function List

template<class mat_t, class data_t>
void o2scl::matrix_swap_rows(size_t N, mat_t &m, size_t i1, size_t i2)

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

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