#15919: Notation S[i] for i-th element of enumerated set S conflicts with
notation
R[x] for polynomial ring
-------------------------------------+-------------------------------------
Reporter: darij | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: algebra | Resolution:
Keywords: notation, | Merged in:
algebra, polynomial | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | a4f7fc34ad7d2ebebee5def1f7366a8bad9d0d83
u/nthiery/ticket/15919 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by nthiery):
* commit: => a4f7fc34ad7d2ebebee5def1f7366a8bad9d0d83
Comment:
The above branch takes a first step toward using more systematically the
unrank protocol, in that case in `CartesianProduct`. This should improve
the situation and could be deemed good enough for now, but is certainly
not a final solution. Also, the unrank function I introduced might be too
paranoid: it makes CartesianProduct.unrank work only with lists, tuples,
Parents, xranges; there might be other inputs that are used around. All
tests pass though (haven't tried long tests yet).
I agree with Nils though: the sampling in the TestSuite should not be
using [i] to do unranking, and probably should just assume that the object
is iterable, and not necessarily unrankable. I'll have a look unless
someone beats me to it.
The third alternative, explored by Darij in his branch, is to reinstate
temporarily the notation FF[i] for unranking for IntegerModRing and
friends.
What do you think?
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=a4f7fc34ad7d2ebebee5def1f7366a8bad9d0d83
a4f7fc3]||{{{15919: a first step toward using more systematically the
unrank protocol}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/15919#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.