numpy - 2D matrix/array - initialization like in Matlab...
Ian Kelly
ian.g.kelly at gmail.com
Mon Oct 15 17:19:49 EDT 2012
On Oct 15, 2012 3:12 PM, "someone" <newsboost at gmail.com> wrote:
> How to initialize my array directly using variables ?
Why not just use the list-of-lists constructor instead of the string
constructor?
m = numpy.matrix([[1,2,3],[4,5,6],[7,8,test]])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121015/1c83138c/attachment.html>
More information about the Python-list
mailing list