I'm trying to swap two columns of a ublas matrix like

matrix <double> m_mat(2,2);


but since they are row-major I can't find a solution (excepted for an ugly cycle)

Do you have any other better solutions in mind?