Creating Element Classes
Hi! I want to be able to create elements, and want their parents to be elements, so I've been reading this page: http://www.sagemath.org/doc/reference....
The example shows Cython commands it seems (cdef v def).... Why? Couldn't I just do this in Python?
Excerpt from page cited above.
Elements typically define a method _new_c, e.g.,
cdef _new_c(self, defining data): cdef FreeModuleElement_generic_dense x x = PY_NEW(FreeModuleElement_generic_dense) x._parent = self._parent x._entries = v