Skip to content

Remove redundant _lmul_ and _rmul_ methods #21140

@jdemeyer

Description

@jdemeyer
  1. Assume commutativity by default and implement _rmul_ as falling back to _lmul_ (like we already do for AdditiveGroupElement).

  2. Implement the basic _lmul_ and _rmul_ just once in ModuleElement: remove the redundant implementations from RingElement and AdditiveGroupElement.

Component: coercion

Author: Jeroen Demeyer

Branch/Commit: 69d18c7

Reviewer: Vincent Delecroix

Issue created by migration from https://trac.sagemath.org/ticket/21140

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions