I've just discovered a confidence-shattering bug with numpy matrices.
sage: mymat = numpy.matrix(numpy.arange(6).reshape(3,2))
sage: mymat[:,0]
matrix([[0, 2, 4]])
sage: mymat[:,int(0)]
matrix([[0],
[2],
[4]])
This caused the value of expressions to change when placed inside a
for loop!
Does anyone have any idea why using a sage integer to index a numpy
matrix would give me a row vector?!
This is now trac #10928:
http://trac.sagemath.org/sage_trac/ticket/10928
Felix
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org