Function matrix_swap_double (o2scl)

O2scl : Function List

template<class mat_t, class mat2_t, class data_t>
void o2scl::matrix_swap_double(size_t M, size_t N, mat_t &m1, mat2_t &m2)

Swap of the first \( (M,N) \) elements in two double-precision matrices.

This function swaps the elements of m1 and m2, one element at a time.

template<class mat_t>
void o2scl::matrix_swap_double(mat_t &m, size_t i1, size_t j1, size_t i2, size_t j2)

Swap two elements in a double-precision matrix.

This function swaps the element i and element j of matrix v1.