Hi
Let's say I have a matrix defined by
A1 : matrix([1,2], [3,4], [5,6])
Now I want to reshape the 3x2 matrix into a vector of 6x1 so that the
end result would be same as declaring
A2 = matrix([1, 3, 5, 2, 4, 6])
How can I do this? One method is to get each of the separate columns
and create a new variable. But this is tedious for very large matrices
and I have to do it for every column. I am sure there is an easy way
(intrinsic function?) to do this. Can someone provide couple of ideas?
thanks
raju
Please do not cc me separately. I am subscribed to the list and do not
wish to receive the same mail twice.
--
http://groups-beta.google.com/group/mpich