#10028: inconsistent error messages for inverting singular matrices
------------------------------+---------------------------------------------
   Reporter:  dmharvey        |       Owner:  jason, was  
       Type:  defect          |      Status:  needs_review
   Priority:  trivial         |   Milestone:  sage-4.6.2  
  Component:  linear algebra  |    Keywords:              
     Author:                  |    Upstream:  N/A         
   Reviewer:                  |      Merged:              
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by rbeezer):

 I just noticed these weak error messages the other day - it'd be great to
 have all the cases of non-invertible matrices give a common, and
 informative, message.  Two suggestions:

 (a)  At the sage prompt run  {{{search_src("ZeroDivisionError")}}} and I
 think you will find two or three more places in the matrix code that could
 also be improved.

 (b) For Python 3 raising an error will require syntax like:

 {{{
 raise ZeroDivisionError("input matrix must be nonsingular")
 }}}

 Might as well do it that way now.

 Rob

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