On 8/3/2010 12:23 PM, Wayne Watson wrote:
> How do I access 1.2 in such a way as to end up with a float? I keep
> getting a matrix.
> from numpy import matrix
> m = matrix([[1.2],[2.3]])

Matrices have the odd (and imo undesirable) property that
        m[0,0] != m[0][0]
You want the former.

For a discussion that eventually aborted, see
        http://www.scipy.org/MatrixIndexing

Alan Isaac
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to