File tree Expand file tree Collapse file tree 4 files changed +0
-25
lines changed Expand file tree Collapse file tree 4 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,6 @@ cdef class FiniteRingElement(CommutativeRingElement):
154
154
- ``byteorder`` -- str (default: ``"big"``); determines the byte order of
155
155
``input_bytes``; can only be ``"big"`` or ``"little"``
156
156
157
- OUTPUT:
158
-
159
- - Bytes representing ``self``
160
-
161
157
EXAMPLES::
162
158
163
159
sage: F = GF(65537)
@@ -1122,10 +1118,6 @@ cdef class FinitePolyExtElement(FiniteRingElement):
1122
1118
- ``byteorder`` -- str ( default: ``"big"``) ; determines the byte order of
1123
1119
the output; can only be ``"big"`` or ``"little"``
1124
1120
1125
- OUTPUT:
1126
-
1127
- - Bytes representing ``self``
1128
-
1129
1121
EXAMPLES::
1130
1122
1131
1123
sage: F. <z5> = GF( 3^ 5)
Original file line number Diff line number Diff line change @@ -2126,14 +2126,9 @@ cdef class FiniteField(Field):
2126
2126
INPUT:
2127
2127
2128
2128
- ``input_bytes`` -- a bytes-like object or iterable producing bytes
2129
-
2130
2129
- ``byteorder`` -- str (default: ``"big"``); determines the byte order of
2131
2130
``input_bytes``; can only be ``"big"`` or ``"little"``
2132
2131
2133
- OUTPUT:
2134
-
2135
- - A field element represented by the ``input_bytes``
2136
-
2137
2132
EXAMPLES::
2138
2133
2139
2134
sage: input_bytes = b"some_bytes"
Original file line number Diff line number Diff line change @@ -7173,17 +7173,11 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
7173
7173
7174
7174
- ``length`` -- positive integer ( default: ``1``) ; integer is represented in
7175
7175
``length`` bytes
7176
-
7177
7176
- ``byteorder`` -- str ( default: ``"big"``) ; determines the byte order of
7178
7177
the output; can only be ``"big"`` or ``"little"``
7179
-
7180
7178
- ``is_signed`` -- boolean ( default: ``False``) ; determines whether to use two's
7181
7179
compliment to represent the integer
7182
7180
7183
- OUTPUT:
7184
-
7185
- - Bytes representing ``self``
7186
-
7187
7181
.. TODO::
7188
7182
7189
7183
It should be possible to convert straight from the gmp type in cython.
Original file line number Diff line number Diff line change @@ -1583,17 +1583,11 @@ cdef class IntegerRing_class(PrincipalIdealDomain):
1583
1583
INPUT:
1584
1584
1585
1585
- ``input_bytes`` -- a bytes-like object or iterable producing bytes
1586
-
1587
1586
- ``byteorder`` -- str (default: ``"big"``); determines the byte order of
1588
1587
``input_bytes``; can only be ``"big"`` or ``"little"``
1589
-
1590
1588
- ``is_signed`` -- boolean (default: ``False``); determines whether to use two's
1591
1589
compliment to represent the integer
1592
1590
1593
- OUTPUT:
1594
-
1595
- - An integer represented by the ``input_bytes``
1596
-
1597
1591
EXAMPLES::
1598
1592
1599
1593
sage: ZZ.from_bytes(b'\x00\x10 ', byteorder='big')
You can’t perform that action at this time.
0 commit comments