-
-
Notifications
You must be signed in to change notification settings - Fork 713
Open
Description
Attempt to compute discrete_log(M,M) for a matrix M over a finite field results in one of two errors:
ValueError: No discrete log of ... found to base ...
or
TypeError: mutable matrices are unhashable
depending on the given matrix M.
F = GF(9,'z')
F.inject_variables()
S = MatrixSpace(F, 2, 2)
M = Matrix(F, [[z + 2,2*z],[2,z]]) # leads to "ValueError: No discrete log of ... found to base ..."
#M = Matrix(F, [[2,2*z],[2*z + 1,2*z + 1]]) # leads to "TypeError: mutable matrices are unhashable"
r = discrete_log(M,M,ord=S.cardinality()-1) # expect r = 1
CC: @yyyyx4
Component: group theory
Issue created by migration from https://trac.sagemath.org/ticket/33699