#14862: Compositions accept any input
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner: sage-combinat
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: combinatorics | Resolution:
Keywords: composition, | Merged in:
FindStat | Reviewers:
Authors: | Work issues: provide a test in the
Report Upstream: N/A | constructor
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by darij):
Replying to [comment:19 nbruin]:
> {{{
> sage: timeit("Composition([1,2,3,4])",number=100000)
> 100000 loops, best of 3: 8.01 µs per loop
> sage: timeit("Compositions()([1,2,3,4])",number=100000)
> 100000 loops, best of 3: 6.8 µs per loop
> sage: C=Compositions()
> sage: timeit("C([1,2,3,4])",number=100000)
> 100000 loops, best of 3: 4.64 µs per loop
> }}}
Convincing. Thank you!!
--
Ticket URL: <http://trac.sagemath.org/ticket/14862#comment:20>
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/groups/opt_out.