Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/structure/parent_old.pxd
4057 views
###############################################################################
#   SAGE: System for Algebra and Geometry Experimentation    
#       Copyright (C) 2006 William Stein <[email protected]>
#  Distributed under the terms of the GNU General Public License (GPL)
#  The full text of the GPL is available at:
#                  http://www.gnu.org/licenses/
###############################################################################

cimport parent
cdef class Parent(parent.Parent):
    
    # returns a Morphism from S to self, or None
    cpdef coerce_map_from_c(self, S)
    cdef coerce_map_from_c_impl(self, S)
    
    # returns the Action by/on self on/by S
    # corresponding to op and self_on_left
    cpdef get_action_c(self, S, op, bint self_on_left)
    cdef get_action_c_impl(self, S, op, bint self_on_left)
    
    

    cdef public object _has_coerce_map_from

    #########################################
    # Canonical Coercion Methods
    cpdef has_coerce_map_from_c(self, S)
    cdef has_coerce_map_from_c_impl(self, S)
    cpdef _coerce_c(self, x)
    cdef _coerce_c_impl(self, x)
    cdef _coerce_self_c(self, x)

    cdef _an_element_c_impl(self)
    cpdef _an_element_c(self)

    ################################################
    # Comparison of parent objects
    cdef _richcmp(left, right, int op)
    cdef int _cmp_c_impl(left, parent.Parent right) except -2