summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Scrimshaw <tscrimsh at umn.edu>2016-03-08 18:00:05 -0600
committerTravis Scrimshaw <tscrimsh at umn.edu>2016-03-08 18:00:05 -0600
commitbea6b3c96b42255a8f9459b344c625fe22c337d7 (patch)
tree4172012a1be69df071a960dea18bf0976c225bbd
parentFixing doctest and adding is_one. (diff)
Even better is_one by avoiding unnecessary coercions for matrices.
-rw-r--r--src/sage/groups/matrix_gps/group_element.pxd1
-rw-r--r--src/sage/groups/matrix_gps/group_element.pyx2
-rw-r--r--src/sage/matrix/matrix2.pyx4
3 files changed, 3 insertions, 4 deletions
diff --git a/src/sage/groups/matrix_gps/group_element.pxd b/src/sage/groups/matrix_gps/group_element.pxd
index ae35220..eba68df 100644
--- a/src/sage/groups/matrix_gps/group_element.pxd
+++ b/src/sage/groups/matrix_gps/group_element.pxd
@@ -10,7 +10,6 @@ cdef class MatrixGroupElement_generic(MultiplicativeGroupElement):
cpdef int _cmp_(self, Element other) except -2
cpdef list list(self)
cpdef MonoidElement _mul_(self, MonoidElement other)
- cpdef is_one(self)
cdef class MatrixGroupElement_gap(ElementLibGAP):
cpdef _act_on_(self, x, bint self_on_left)
diff --git a/src/sage/groups/matrix_gps/group_element.pyx b/src/sage/groups/matrix_gps/group_element.pyx
index f00db1b..23610df 100644
--- a/src/sage/groups/matrix_gps/group_element.pyx
+++ b/src/sage/groups/matrix_gps/group_element.pyx
@@ -323,7 +323,7 @@ cdef class MatrixGroupElement_generic(MultiplicativeGroupElement):</