#15820: Implement sequences of bounded integers
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: sequence bounded | Merged in:
integer | Reviewers:
Authors: Simon King | Work issues:
Report Upstream: N/A | Commit:
Branch: | e166d38d8be72453d42325c5f6a73592ddeb3827
u/SimonKing/ticket/15820 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Question: what is the reason that you allow a length of `0`, requiring
lots of special cases in the code?
I.e. why not replace
{{{
if S.length:
if R.length:
bitset_realloc(R.data, S.data.size)
else:
bitset_init(R.data, S.data.size)
mpn_copyi(R.data.bits, S.data.bits, S.data.limbs)
elif R.length:
bitset_free(R.data)
}}}
by
{{{
bitset_realloc(R.data, S.data.size)
mpn_copyi(R.data.bits, S.data.bits, S.data.limbs)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15820#comment:213>
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.