[sage-combinat-devel] Re: Inversion of matrix...

2013-09-04 Thread Simon King
Hi Nicolas, On 2013-09-04, Nicolas Borie wrote: > This way works ! But it overwrite the scalar multiplication for the > other usuals ring. Just an idea: _get_action_ could try to determine whether the usual action (that relies on _rmul_/_lmul_) is available. If it is available then probably it

Re: [sage-combinat-devel] Re: Inversion of matrix...

2013-09-04 Thread Nicolas Borie
On 03/09/2013 22:48, Simon King wrote: PS: - I recommend to *try* (no guarantee it will work) to create a new type of action "A" (inherit from sage.categories.action.Action). You need to implement its _call_ and _repr_name_, and I think that's all what is to do (but perhaps you'll find

Re: [sage-combinat-devel] Re: Inversion of matrix...

2013-09-04 Thread Vincent Delecroix
Hi Nicolas B., T. Monteil get the same problem in #10063 when he fixes the determinant. He used something like {{{ try: test = my_ring.is_field() except AttributeError: test = False }}} Vincent 2013/9/4 Nicolas Borie : > On 03/09/2013 22:48, Simon King wrote: >> >> PS: >> >> >> - I reco