Opened 11 years ago

Closed 3 years ago

#9576 closed enhancement (fixed)

Allow the operator & for submodule intersections.

Reported by: fmaltey Owned by: jason, was
Priority: trivial Milestone: sage-8.1
Component: linear algebra Keywords: operator & for submodule intersection
Cc: Merged in:
Authors: Paolo Menegatti Reviewers: Simon Brandhorst
Report Upstream: N/A Work issues:
Branch: 3436506 (Commits) Commit: 3436506d62815118dd6e47d42647d23996ee324e
Dependencies: Stopgaps:


There is already the operatror & for Sets intersections : S1 & S2.

There is also the operator + for submodules sum : F+G.

I propose to expand the operator & over submodules and subspaces, and add theses lines in

## allow the "intersection" operator & for submodules.
     def __and__ (self, other) : return self.intersection (other)

Change History (5)

comment:1 Changed 3 years ago by pmenegat

  • Branch set to u/pmenegat/allow_the_operator___for_submodule_intersections_

comment:2 Changed 3 years ago by git

  • Commit set to 3436506d62815118dd6e47d42647d23996ee324e

Branch pushed to git repo; I updated commit sha1. New commits:

3436506Added "&" operator for intersection

comment:3 Changed 3 years ago by pmenegat

  • Authors changed from fmaltey to Paolo Menegatti
  • Milestone set to sage-8.1
  • Status changed from new to needs_review

comment:4 Changed 3 years ago by sbrandhorst

  • Reviewers set to Simon Brandhorst
  • Status changed from needs_review to positive_review

comment:5 Changed 3 years ago by vbraun

  • Branch changed from u/pmenegat/allow_the_operator___for_submodule_intersections_ to 3436506d62815118dd6e47d42647d23996ee324e
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.