Is there any efficient way or command to transform a "N x 1" or "1 x N " matrix into a list?
Thanks.
Is there any efficient way or command to transform a "N x 1" or "1 x N " matrix into a list?
Thanks.
Dear Doug,
Thank you very much for your quick reply.
But from the Macaulay2 document online,
http://www.math.uiuc.edu/Macaulay2/doc/Macaulay2-1.4/share/doc/Macaulay2/Macaulay2Doc/html/_flatten_lp__Matrix_rp.html
it seems that flatten(Matrix) transforms a matrix into a matrix, not into a list. Did I miss any point here?
I wish to appy unique
command
on a list or sequence.
Thanks again.
Best,
Rex
Nice. Thanks, Doug. :)
Hope you have a nice day.
Again, the underscore operator can facilitate this in the Nx1 case:
i20 : M = matrix {{1},{2},{3}}
o20 = | 1 |
| 2 |
| 3 |
3 1
o20 : Matrix ZZ <--- ZZ
i21 : M_0
o21 = | 1 |
| 2 |
| 3 |
3
o21 : ZZ
i22 : entries M_0
o22 = {1, 2, 3}
--
Thomas Kahle
--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
Visit this group at http://groups.google.com/group/macaulay2.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Macaulay2" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/macaulay2/dX0xkcjrUZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to macaulay2+...@googlegroups.com.