On Tue, Oct 9, 2012 at 7:46 AM, Dox <o.castillo.felis...@gmail.com> wrote:
> Dear all,
>
> I'm interested in defining the anti-commutator (function or method) for
> matrices. I look up the definition of the commutator, and it's very simple
>
> def acomm(self,other):
>     return self*other + other*self
>
> providing (of course) the additional information about the usage.
>
> However I tried to add this function to my sage-test branch... and I
> couldn't find where the methods for matrices are.
>
> Where should I include this changes?
>
> Thx.
>

The commutator method is located in sage/matrix/matrix0.pyx which I
found by doing:

{{{
sage: search_src("commutator")
...
matrix/matrix0.pyx:2154:    def commutator(self, other):
...
}}}

--
Benjamin Jones

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to