-
-
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.
Some little cleanup and a @Property for value.
- Loading branch information
Travis Scrimshaw
committed
Jan 20, 2019
1 parent
4e9d29b
commit d2fe93d
Showing
2 changed files
with
113 additions
and
79 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
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) | ||
|
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