-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #27057: speedup crystal weight and spin e/f
URL: https://trac.sagemath.org/27057 Reported by: mantepse Ticket author(s): Travis Scrimshaw Reviewer(s): Travis Scrimshaw, Martin Rubey
- Loading branch information
Showing
6 changed files
with
859 additions
and
540 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
from sage.structure.element cimport Element | ||
|
||
cdef class Letter(Element): | ||
cdef readonly int value | ||
|
||
cdef class EmptyLetter(Element): | ||
cdef readonly str value | ||
cpdef e(self, int i) | ||
cpdef f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_A_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_B_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_C_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_D_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_G_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class LetterTuple(Element): | ||
cdef readonly tuple value | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_E6_element(LetterTuple): | ||
cpdef LetterTuple e(self, int i) | ||
cpdef LetterTuple f(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_E6_element_dual(LetterTuple): | ||
cpdef LetterTuple lift(self) | ||
cpdef LetterTuple retract(self, LetterTuple p) | ||
cpdef LetterTuple e(self, int i) | ||
cpdef LetterTuple f(self, int i) | ||
|
||
cdef class Crystal_of_letters_type_E7_element(LetterTuple): | ||
cpdef LetterTuple e(self, int i) | ||
cpdef LetterTuple f(self, int i) | ||
|
||
cdef class BKKLetter(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
|
||
cdef class QueerLetter_element(Letter): | ||
cpdef Letter e(self, int i) | ||
cpdef Letter f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class LetterWrapped(Element): | ||
cdef readonly Element value | ||
cpdef tuple _to_tuple(self) | ||
cpdef LetterWrapped e(self, int i) | ||
cpdef LetterWrapped f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from sage.structure.element cimport Element | ||
|
||
cdef class Spin(Element): | ||
cdef bint* _value | ||
cdef int _n | ||
cdef long _hash | ||
|
||
cdef Spin _new_c(self, bint* value) | ||
|
||
cdef class Spin_crystal_type_B_element(Spin): | ||
cpdef Spin e(self, int i) | ||
cpdef Spin f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
||
cdef class Spin_crystal_type_D_element(Spin): | ||
cpdef Spin e(self, int i) | ||
cpdef Spin f(self, int i) | ||
cpdef int epsilon(self, int i) | ||
cpdef int phi(self, int i) | ||
|
Oops, something went wrong.