#5460: [with patch, needs review] deprecate 'invert' in matrix_rational_dense
----------------------------+-----------------------------------------------
 Reporter:  jhpalmieri      |       Owner:  jhpalmieri
     Type:  defect          |      Status:  new       
 Priority:  minor           |   Milestone:  sage-3.4.1
Component:  linear algebra  |    Keywords:            
----------------------------+-----------------------------------------------

Comment(by rbeezer):

 Replying to [ticket:5460 jhpalmieri]:
 I get the deprecation warning with a singular matrix, but not with a
 nonsingular matrix.  Is this the desired/expected behavior?  Otherwise, it
 looks good, passed tests, etc.


 {{{
 sage: a=matrix(QQ, [[1,2],[3,6]])
 sage: a.invert()
 /opt/sage-dev/local/lib/python2.5/site-packages/IPython/iplib.py:2073:
 DeprecationWarning: 'invert' is deprecated; use 'inverse' instead.
   exec code_obj in self.user_global_ns, self.user_ns
 ---------------------------------------------------------------------------
 ZeroDivisionError                         Traceback (most recent call
 last)
 <snip>
 }}}

 {{{
 sage: b=matrix(QQ, [[1,2],[3,7]])
 sage: b.invert()

 [ 7 -2]
 [-3  1]
 }}}

 {{{

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5460#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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