Type nombre entier modulo k (c.-à-d. un élément de ℤk) Plus de détails...
Fonctions membres publiques | |
| def | __new__ |
| Crée l'élément. | |
| def | __init__ |
| Initialise l'élément à selfk. | |
| def | __add__ |
| Renvoie self + other. | |
| def | __int__ |
| Renvoie le naturel correspondant à la valeur self. | |
| def | __invert__ |
| Renvoie ~self. | |
| def | __lshift__ |
| Renvoie self<<other. | |
| def | __mul__ |
| Renvoie self*other. | |
| def | __neg__ |
| Renvoie -self. | |
| def | __or__ |
| Renvoie self | other. | |
| def | __pow__ |
| Renvoie self**other. | |
| def | __sub__ |
| Renvoie self - other. | |
| def | __xor__ |
| Renvoie self ^ other. | |
| def | k |
| Renvoie la valeur du modulo k. | |
| def | __divmod__ |
| Renvoie (self//other, selfother) | |
| def | __floordiv__ |
| Renvoie self//other. | |
| def | __mod__ |
| Renvoie selfother. | |
| def | __truediv__ |
| Renvoie NotImplemented. | |
Type nombre entier modulo k (c.-à-d. un élément de ℤk)
Type nombre entier modulo k (c.-à-d. un élément de Z_k) : 0, 1, 2, …, k-1
| def DSPython.intmod.Intmod.__init__ | ( | self, | |
| value, | |||
| k | |||
| ) |
Initialise l'élément à selfk.
Initialise l'élément à self%k
Pre: value: Integral ou String
k: Integral >= 1
Définition à la ligne 52 du fichier intmod.py.
Références DSPython.intmod.Intmod._k, et DSPython.natural_is().
| def DSPython.intmod.Intmod.__add__ | ( | self, | |
| other | |||
| ) |
Renvoie self + other.
Renvoie self + other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 66 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__divmod__ | ( | self, | |
| other | |||
| ) |
| def DSPython.intmod.Intmod.__floordiv__ | ( | self, | |
| other | |||
| ) |
| def DSPython.intmod.Intmod.__int__ | ( | self | ) |
| def DSPython.intmod.Intmod.__invert__ | ( | self | ) |
Renvoie ~self.
Renvoie ~self (modulo self.k()) Result: Intmod(, k=self.k())
Définition à la ligne 86 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__lshift__ | ( | self, | |
| other | |||
| ) |
Renvoie self<<other.
Renvoie self<<other (modulo self.k()) Pre: other: Intmod ou (Integral >= 0) Result: Intmod(, k=self.k())
Définition à la ligne 94 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__mod__ | ( | self, | |
| other | |||
| ) |
| def DSPython.intmod.Intmod.__mul__ | ( | self, | |
| other | |||
| ) |
Renvoie self*other.
Renvoie self*other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 106 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__neg__ | ( | self | ) |
Renvoie -self.
Renvoie -self (modulo self.k()) Result: Intmod(, k=self.k())
Définition à la ligne 118 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__new__ | ( | cls, | |
| value, | |||
| k, | |||
base = 10 |
|||
| ) |
Crée l'élément.
Crée l'élément
Pre: value: Integral ou String
k: Integral >= 1
Définition à la ligne 34 du fichier intmod.py.
Références DSPython.natural_is().
| def DSPython.intmod.Intmod.__or__ | ( | self, | |
| other | |||
| ) |
Renvoie self | other.
Renvoie self | other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 126 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__pow__ | ( | self, | |
| other | |||
| ) |
Renvoie self**other.
Renvoie self**other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 138 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__sub__ | ( | self, | |
| other | |||
| ) |
Renvoie self - other.
Renvoie self - other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 151 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.__truediv__ | ( | self, | |
| other | |||
| ) |
Renvoie NotImplemented.
Renvoie NotImplemented Pre: other: Intmod ou Integral Result: NotImplemented
Définition à la ligne 222 du fichier intmod.py.
Références DSPython.numbernone.divmod(), et DSPython.tnp1.main_test().
| def DSPython.intmod.Intmod.__xor__ | ( | self, | |
| other | |||
| ) |
Renvoie self ^ other.
Renvoie self ^ other (modulo self.k()) Pre: other: Intmod ou Integral Result: Intmod(, k=self.k())
Définition à la ligne 163 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.
| def DSPython.intmod.Intmod.k | ( | self | ) |
Renvoie la valeur du modulo k.
Renvoie la valeur du modulo k Result: Integral >= 1
Définition à la ligne 175 du fichier intmod.py.
Références DSPython.intmod.Intmod._k.