On Sun, Mar 8, 2009 at 7:35 PM, Omar <omar.anto...@gmail.com> wrote:
>
> Does anybody know why there are two methods to invert matrices?
>
> One of them is called m.inverse() and the other is m.invert().
>
> invert() seems to be only defined for dense matrices with rational
> entries, and inverse() seems to work for both sparse and dense
> matrices over any field.
>
> Is there a good reason to have invert()? I can imagine something
> happening along the lines of somebody trying to override inverse for
> dense rational matrices to give a better algorithm or whatever and
> calling the method invert instead of inverse by accident...

That sounds likely.  The somebody was probably me.  I hope somebody
opens a track
ticket to deprecate, then remove (in some number of months) "invert".

> By the way, inverse is a much better name, since invert sounds very
> imperative and you might expect invert to invert the matrix in place
> (that's what I thought it did initially).
>

+1

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to