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. 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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
List transpose using built-in? - StephenG1CMZ - 10-28-2018, 11:46 PM
RE: List transpose using built-in? - Albert Chan - 10-29-2018 01:19 AM
RE: List transpose using built-in? - Didier Lachieze - 10-31-2018, 12:59 PM
RE: List transpose using built-in? - Tim Wessman - 10-31-2018, 01:04 PM
RE: List transpose using built-in? - Didier Lachieze - 10-31-2018, 01:38 PM
RE: List transpose using built-in? - compsystems - 10-31-2018, 01:55 PM
RE: List transpose using built-in? - StephenG1CMZ - 11-01-2018, 08:08 AM
|
User(s) browsing this thread: 1 Guest(s)