Skip to content

Commit

Permalink
Update src/sage/matrix/matrix2.pyx
Browse files Browse the repository at this point in the history
avoid import, directly call `sqrt` method, don't extend to keep result in `ZZ`

Co-authored-by: Travis Scrimshaw <[email protected]>
  • Loading branch information
jacksonwalters and tscrim authored Mar 3, 2025
1 parent 6dd6d7f commit 6fd2bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13002,7 +13002,7 @@ cdef class Matrix(Matrix1):
if not (F.is_finite() and F.order().is_square()):
raise ValueError("the base ring must be a finite field of square order")

q = sqrt(F.order())
q = F.order().sqrt(extend=False)

def conj_square_root(u):
if u == 0:
Expand Down

0 comments on commit 6fd2bd6

Please sign in to comment.