Just noticed the following:

sage: import numpy as np
sage: r=10
sage: c=76
sage: A = 2*np.random.randint(2, size=(r,c))-np.ones((r,c),dtype=np.int)
sage: A = matrix(QQ,A)
sage: A
10 x 76 dense matrix over Integer Ring (type 'print A.str()' to see all of 
the entries)

So matrix(QQ,<numpy>) actually constructs a matrix over ZZ. Thats somewhat 
unexpected.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to