Post Reply 
List transpose using built-in?
10-31-2018, 12:59 PM
Post: #3
RE: List transpose using built-in?
(10-28-2018 11:46 PM)StephenG1CMZ Wrote:  I was expecting the built-in sequence mat2list(transpose(list2mat)) to give the same results.
It is similar, but flatter than my implementation.

Here is another way to transpose a list of lists using built-in commands:

MAKELIST(mat2list(col(LST,I)),I,1,colDim(LST))

it should be faster than the double FOR loop.


Note: it seems, at least with the latest Prime beta firmware, that the column index start value is different between the Virtual Prime and the real Prime/Android Prime. On the Windows Virtual Prime, you would need to do: MAKELIST(mat2list(col(LST,I)),I,0,colDim(LST)-1)
I've reported this to calcbeta.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: List transpose using built-in? - Didier Lachieze - 10-31-2018 12:59 PM



User(s) browsing this thread: