Ticket #12959 (closed enhancement: fixed)
Improvements to Sets.WithRealizations
| Reported by: | nthiery | Owned by: | nthiery |
|---|---|---|---|
| Priority: | major | Milestone: | sage-5.3 |
| Component: | categories | Keywords: | realizations, sd40 |
| Cc: | sage-combinat, chrisjamesberg, zabrocki | Work issues: | |
| Report Upstream: | N/A | Reviewers: | Mike Zabrocki |
| Authors: | Nicolas M. Thiéry, Franco Saliola | Merged in: | sage-5.3.beta0 |
| Dependencies: | #12953 | Stopgaps: |
Description (last modified by saliola) (diff)
Attachments
Change History
comment:1 Changed 10 months ago by saliola
- Cc chrisjamesberg added
- Keywords realizations, sd40 added; realizations removed
- Status changed from new to needs_review
- Authors changed from Nicolas M. Thiéry, ... to Nicolas M. Thiéry, Franco Saliola
Implement default methods for (With)Realizations that use the realization provided by the method a_realization for computations:
- AlgebrasWithBasis.ParentMethods.product is modified to use product_by_coercion if product_on_basis is not available
- Magmas.Realizations added and Magmas.Realizations.ParentMethods.product_by_coercion uses self.a_realization()
- CommutativeAdditiveMonoids.WithRealizations added and CommutativeAdditiveMonoids.WithRealizations.ParentMethods.zero returns self.a_realization().zero()
- Monoids.WithRealizations added and Monoids.WithRealizations.ParentMethods.one returns self.a_realization().one()
- Sets.WithRealizations.ParentMethods.inject_shorthands : injects any shorthands names for realizations provided in the _shorthands attribute
- added _shorthand attribute to the example in sage.categories.example.with_realizations
And update examples/with_realizations.py accordingly.
Changed 10 months ago by saliola
-
attachment
trac_12959-100_percent_coverage_for_algebras_with_basis-fs.patch
added
100% doctest coverage for algebras_with_basis
comment:3 Changed 10 months ago by saliola
Mike pointed out that algebras_with_basis.py needed only 1 doctest to get 100% coverage, so this latest patch adds one.
Changed 10 months ago by saliola
-
attachment
trac_12959-remove_lower_from_realization_name-fs.patch
added
comment:4 follow-up: ↓ 11 Changed 10 months ago by saliola
Latest patch switches to using the class name for determining the default realization name (currently, the class name is taken and it is rendered lowercase for some reason; there was a FIXME suggesting this should not be lowercased).
comment:9 Changed 10 months ago by jdemeyer
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-5.3.beta0
comment:10 Changed 10 months ago by nthiery
For the record: I imported the latest version of the patches in the Sage-Combinat queue, and rebased my functorial construction patch on top of it.
Cheers,
comment:11 in reply to: ↑ 4 Changed 10 months ago by nthiery
Replying to saliola:
Latest patch switches to using the class name for determining the default realization name (currently, the class name is taken and it is rendered lowercase for some reason; there was a FIXME suggesting this should not be lowercased).
There was a question mark at the end of the FIXME; so this was to be discussed! Oh well, since it's merged in, I guess we can just consider the discussion as closed.
