reordering columns of matrix according to a row
Posted: Fri Mar 04, 2011 4:31 pm
Dear EViews Forum users,
Let A denote a 2x3 matrix. I would like to sort (reorder) the columns of A according to the elements in the 3rd row from smallest to largest, ie if matrix A is
2 5 6
7 -2 4
3 2 7
the new sorted matrix would be
5 6 2
-2 4 7
2 7 3
Gauss has simple functions to do this. I would be surprised if EViews has not but I have been unable to find such function in the help manuals.
thank you very much
Let A denote a 2x3 matrix. I would like to sort (reorder) the columns of A according to the elements in the 3rd row from smallest to largest, ie if matrix A is
2 5 6
7 -2 4
3 2 7
the new sorted matrix would be
5 6 2
-2 4 7
2 7 3
Gauss has simple functions to do this. I would be surprised if EViews has not but I have been unable to find such function in the help manuals.
thank you very much