This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
86 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
from sage.structure.element cimport Element, RingElement | ||
from sage.structure.element cimport Element, ModuleElement | ||
|
||
cdef class IndexedFreeModuleElement(Element): | ||
cdef class IndexedFreeModuleElement(ModuleElement): | ||
cdef public dict _monomial_coefficients | ||
cdef long _hash | ||
cdef bint _hash_set | ||
|
||
cpdef _add_(self, other) | ||
cpdef _sub_(self, other) | ||
cpdef _neg_(self) | ||
|
||
cpdef dict monomial_coefficients(self, bint copy=*) | ||
cpdef _coefficient_fast(self, m) | ||
cpdef _lmul_(self, Element right) | ||
cpdef _rmul_(self, Element left) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters