How to swap two rows of a TMatrixD

What is the [color=#FF0000]simplest[/color] way (i.e. the [color=#FF0000]most[/color] efficient) to swap two rows of a “TMatrixD”?
Actually, it is a simple 3x3 matrix and I need to swap row 0 and 2 (row 1 remains as it is).

Something along the following lines:

const TVectorD row_i = TMatrixDColumn_const(A,i); // store row i
TMatrixDColumn(A,i) = TMatrixDColumn_const(A,j); // replace row i with row j
TMatrixDColumn(A,j) = row_i;  // replace row j with the original row i