@@ -13,20 +13,23 @@ along with :class:`~sage.rings.polynomial.skew_polynomial_element.ConstantSkewPo
13
13
and :class:`~sage. rings. polynomial. skew_polynomial_element. SkewPolynomialBaseringInjection`
14
14
for conversion from a skew polynomial ring to its base ring and vice versa respectively.
15
15
16
- AUTHOR :
16
+ AUTHORS :
17
17
18
18
- Xavier Caruso ( 2012-06-29) : initial version
19
19
20
20
- Arpit Merchant ( 2016-08-04) : improved docstrings, fixed doctests and refactored classes and methods
21
21
22
- - Johan Nielson ( 2016-08-03) : changes for bug fixes, docstring and doctest errors
22
+ - Johan Rosenkilde ( 2016-08-03) : changes for bug fixes, docstring and doctest errors
23
+
23
24
"""
24
25
25
26
# ############################################################################
26
27
# Copyright (C) 2012 Xavier Caruso <[email protected] >
27
28
#
28
- # Distributed under the terms of the GNU General Public License (GPL)
29
- #
29
+ # This program is free software: you can redistribute it and/or modify
30
+ # it under the terms of the GNU General Public License as published by
31
+ # the Free Software Foundation, either version 2 of the License, or
32
+ # (at your option) any later version.
30
33
# http://www.gnu.org/licenses/
31
34
# ****************************************************************************
32
35
@@ -296,8 +299,8 @@ cdef class SkewPolynomial(AlgebraElement):
296
299
sage: a < b
297
300
False
298
301
"""
299
- cdef list x = (< SkewPolynomial> left)._coeffs
300
- cdef list y = (< SkewPolynomial> right)._coeffs
302
+ cdef x = (< SkewPolynomial> left)._coeffs
303
+ cdef y = (< SkewPolynomial> right)._coeffs
301
304
return PyObject_RichCompare(x, y, op)
302
305
303
306
cdef SkewPolynomial _new_c(self , list coeffs, Parent P, char check = 0 ):
@@ -2754,7 +2757,7 @@ cdef class SkewPolynomial_generic_dense(SkewPolynomial):
2754
2757
r = < SkewPolynomial_generic_dense> self ._parent(v)
2755
2758
else :
2756
2759
r = < SkewPolynomial_generic_dense> self ._new_c(list (self ._coeffs),self ._parent)
2757
- r = r ** exp
2760
+ r._inplace_pow( exp)
2758
2761
2759
2762
if modulus:
2760
2763
_, r = r.left_quo_rem(modulus)
0 commit comments