#6569: sparse integer matrix doesn't raise an error on non-integer index
----------------------------+-----------------------------------------------
 Reporter:  jason           |       Owner:  was       
     Type:  defect          |      Status:  new       
 Priority:  major           |   Milestone:  sage-4.1.1
Component:  linear algebra  |    Keywords:            
 Reviewer:                  |      Author:            
   Merged:                  |  
----------------------------+-----------------------------------------------
 {{{
 {{{
 sage: a=matrix(4,range(1,17),sparse=True)
 sage: a[[2.3],[2.1]]
 [0]
 }}}

 as compared to

 {{{
 sage: a=matrix(4,range(1,17))
 sage: a[[2.3],[2.1]]
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/grout/.sage/temp/tiny/8143/_home_grout__sage_init_sage_0.py in
 <module>()

 /home/grout/sage/local/lib/python2.6/site-packages/sage/matrix/matrix0.so
 in sage.matrix.matrix0.Matrix.__getitem__ (sage/matrix/matrix0.c:4999)()

 /home/grout/sage/local/lib/python2.6/site-packages/sage/matrix/matrix1.so
 in sage.matrix.matrix1.Matrix.matrix_from_rows_and_columns
 (sage/matrix/matrix1.c:8613)()

 TypeError: 'sage.rings.real_mpfr.RealLiteral' object cannot be interpreted
 as an index
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6569>
Sage <http://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