#15251: minor Steenrod algebra fixes
--------------------------+---------------------------------
Reporter: jhpalmieri | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-5.13
Component: algebra | Keywords:
Merged in: | Authors: John Palmieri
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
--------------------------+---------------------------------
The attached patch makes some minor changes to the Steenrod algebra code:
- changes a few docstrings and comments
- one bug fix (to make `SteenrodAlgebra(2, 'wood')` raise a more
meaningful error) with doctest
- cache the function `arnonC_basis` for a speed improvement. Before:
{{{
sage: %time B = SteenrodAlgebra(basis='arnon_c').basis(20)
CPU times: user 2.44 s, sys: 0.17 s, total: 2.60 s
Wall time: 2.51 s
sage: %time B = SteenrodAlgebra(basis='arnon_c').basis(100) # takes a
loooong time
}}}
After:
{{{
sage: %time B = SteenrodAlgebra(basis='arnon_c').basis(20)
CPU times: user 0.01 s, sys: 0.00 s, total: 0.01 s
Wall time: 0.01 s
sage: %time B = SteenrodAlgebra(basis='arnon_c').basis(100)
CPU times: user 0.57 s, sys: 0.10 s, total: 0.67 s
Wall time: 0.60 s
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15251>
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.