#19870: Cythonize matrix group elements
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: tscrim
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-7.0
Component: cython | Resolution:
Keywords: matrix group, | Merged in:
elements | Reviewers:
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | 29f72539754e8efba97deb07a93d735af559a552
public/groups/cythonize_matrix_group_element-19870| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
1. I think you should add a `.pxd` file such that other Cython modules can
`cimport` this if needed.
2. Use the standard
[http://doc.sagemath.org/html/en/developer/coding_basics.html#headings-of-
sage-library-code-files copyright template].
3. Remove `__cmp__ = _cmp_` twice (it doesn't work and it's not needed).
4. You don't actually use this: `from sage.structure.element import
have_same_parent`.
5. There is not much point in making `matrix()` a `cpdef` method: you can
just directly access the `_matrix` attribute from Cython.
--
Ticket URL: <http://trac.sagemath.org/ticket/19870#comment:13>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.