#11721: Silent failures in matrix code
------------------------------+---------------------------------------------
   Reporter:  rbeezer         |          Owner:  jason, was  
       Type:  defect          |         Status:  needs_review
   Priority:  minor           |      Milestone:  sage-4.7.2  
  Component:  linear algebra  |       Keywords:  beginner    
Work_issues:                  |       Upstream:  N/A         
   Reviewer:                  |         Author:  Rob Beezer  
     Merged:                  |   Dependencies:              
------------------------------+---------------------------------------------
Changes (by newvalueoldvalue):

  * keywords:  => beginner
  * status:  new => needs_review
  * author:  => Rob Beezer


Old description:

> If you call `rows()` for a matrix and supply a bad argument, it just goes
> on its way.
>
> {{{
> sage: A = matrix(QQ, 2, range(4))
> sage: A.rows(1)
> [(0, 1), (2, 3)]
> }}}
>
> Same for columns.
>
> A request for a Jordan block of negative size just goes on its way.
>
> {{{
> sage: jordan_block(6.2, -8)
> []
> }}}
>
> Also - some general clean-up while I was in the area.

New description:

 If you call `rows()` for a matrix and supply a bad argument, it just goes
 on its way.

 {{{
 sage: A = matrix(QQ, 2, range(4))
 sage: A.rows(1)
 [(0, 1), (2, 3)]
 }}}

 Same for columns.

 A request for a Jordan block of negative size just goes on its way.

 {{{
 sage: jordan_block(6.2, -8)
 []
 }}}

 Also - some general clean-up while I was in the area.

 '''Apply''':
   1.  [attachment:trac_11721-matrix-arguments.patch]

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11721#comment:1>
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