summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Scrimshaw <tscrimsh at umn.edu>2016-01-25 09:14:15 -0600
committerTravis Scrimshaw <tscrimsh at umn.edu>2016-01-25 09:14:15 -0600
commit5333b0f2c69a99623c43c2f660d7441a9de23a6d (patch)
tree81e27b472b98c03e9f74d9f7c9c72215958839dc
parentSpecial case for dense matrices over ZZ and making sure the inverse is in the... (diff)
Implementing reviewer comments.
1. Created a pxd file. 2. Using copyright template. 3. Removing __cmp__ = _cmp_. 4. Removing unneeded imports. 5. Making matrix() a python function.
-rw-r--r--src/sage/groups/matrix_gps/group_element.pxd18
-rw-r--r--src/sage/groups/matrix_gps/group_element.pyx17
-rw-r--r--src/sage/modular/modform_hecketriangle/hecke_triangle_group_element.py42
3 files changed, 45 insertions, 32 deletions
diff --git a/src/sage/groups/matrix_gps/group_element.pxd b/src/sage/groups/matrix_gps/group_element.pxd
new file mode 100644
index 00000000..eba68df
--- /dev/null
+++ b/src/sage/groups/matrix_gps/group_element.pxd
@@ -0,0 +1,18 @@
+from sage.structure.element cimport MultiplicativeGroupElement, Element, MonoidElement, Matrix
+from sage.groups.libgap_wrapper cimport ElementLibGAP
+
+cpdef is_MatrixGroupElement(x)
+
+cdef class MatrixGroupElement_generic(MultiplicativeGroupElement):
+ cdef public Matrix _matrix
+
+ cpdef _act_on_(self, x, bint self_on_left)
+ cpdef int _cmp_(self, Element other) except -2
+ cpdef list list(self)
+ cpdef MonoidElement _mul_(self, MonoidElement other)
+
+cdef class MatrixGroupElement_gap(ElementLibGAP):
+ cpdef _act_on_(self, x, bint self_on_left)
+ cpdef int _cmp_(self, Element other) except -2