Question to ArrTranspose()

Post Reply
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Question to ArrTranspose()

Post by byte-one »

Is there a function (in opposite to ArrTranspose()) that make from a array in form {{1,2,3},{4,5,6},{7,8,9}} a array {{1,4,7},{2,5,8},{3,6,9}}?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Question to ArrTranspose()

Post by nageswaragunupudi »

ArrTranspose() itself is the oppostite of ArrTranspose()

Code: Select all

ArrTranspose( {{1,2,3},{4,5,6},{7,8,9}} ) //-->  {{1,4,7},{2,5,8},{3,6,9}}
//and
ArrTranspose( {{1,4,7},{2,5,8},{3,6,9}} ) //-->  {{1,2,3},{4,5,6},{7,8,9}}
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: Question to ArrTranspose()

Post by byte-one »

Great, Thanks!
Regards,
Günther
---------------------------------
office@byte-one.com
Post Reply