#12287: numpy array to matrix does not respect ring spesification
------------------------------+---------------------------------------------
   Reporter:  vlima           |          Owner:  jason, was   
       Type:  defect          |         Status:  new          
   Priority:  minor           |      Milestone:  sage-5.0     
  Component:  linear algebra  |       Keywords:  numpy, matrix
Work_issues:                  |       Upstream:  N/A          
   Reviewer:                  |         Author:               
     Merged:                  |   Dependencies:               
------------------------------+---------------------------------------------
 Example:

 {{{
 sage: import numpy as np
 sage: A = np.random.randint(2,size=(2,2))
 sage: B = matrix(QQ,A)
 sage: B.parent()
 Full MatrixSpace of 2 by 2 dense matrices over Integer Ring
 }}}

 Expected result would be matrix over the rationals:
 {{{
 Full MatrixSpace of 2 by 2 dense matrices over Rational Field
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12287>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to