[SciPy-User] Scipy Array To Matrix

Ricardo Ricardo ricardo_aug07@hotmail....
Sun Nov 11 11:17:31 CST 2012

I would like to convert a numpy array to a matrix.
This way:
>>> dx = numpy.asarray([[1,2,3,4], [1,2,3]])
>>> Array2Matrix(dx)

>>> scipy.spatial.distance.jaccard(dx) # this not work, because the size of the first vector is different from the second.

>>> scipy.spatial.distance.jaccard(dx)

How to?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20121111/b45b758f/attachment.html 

More information about the SciPy-User mailing list