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?
Printable View
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?
I was silly, there's a swap function ready-for-use.
Thank you however