Skip to content

Commit

Permalink
Corrected lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RuchitJagodara authored Dec 17, 2023
1 parent 7955a51 commit ed4e712
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3182,21 +3182,21 @@ cdef class Matrix(Matrix1):

"""

# Validate assertions
# Validate assertions
if not self.is_square():
raise ValueError("self must be a square matrix")

from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing

# Extract parameters
# Extract parameters
cdef Matrix M = <Matrix> self
n = M._ncols
R = M._base_ring
S = PolynomialRing(R, var)

# Corner cases
# N.B. We already tested for M to be square, hence we do not need to
# test for 0 x n or m x 0 matrices.
# test for 0 x n or m x 0 matrices.
if n == 0:
return S.one()

Expand Down Expand Up @@ -18662,8 +18662,8 @@ def _matrix_power_symbolic(A, n):
mk = mk.radical_expression()


# When the variable "mk" is equal to zero, it is advisable to employ the Kronecker delta function
# instead of utilizing the numerical value zero. This choice is made to encompass scenarios where
# When the variable "mk" is equal to zero, it is advisable to employ the Kronecker delta function
# instead of utilizing the numerical value zero. This choice is made to encompass scenarios where
# the power of zero is also equal to zero.
if mk:
vk = [(binomial(n, i) * mk._pow_(n-i)).simplify_full()
Expand Down

0 comments on commit ed4e712

Please sign in to comment.