Post Reply 
List transpose using built-in?
10-29-2018, 01:19 AM
Post: #2
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.

I think matrix is already a 2D list (list of list).
a := [[1, 2, 3], [4,5,6]]
a[0] ==> [1, 2, 3]

mat2list(...) just return coefficient of the matrix, thus flattened it.
mat2list(a) ==> [1, 2, 3, 4, 5, 6]

The name is misleading. mat2list is more like mat2vec.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: List transpose using built-in? - Albert Chan - 10-29-2018 01:19 AM



User(s) browsing this thread: 1 Guest(s)