Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
grhkm21 committed Aug 28, 2024
1 parent e042294 commit 4a59ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/matrix/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ def random_diagonalizable_matrix(parent,eigenvalues=None,dimensions=None):
with a check that if eigenvectors were calculated by hand
entries would all be integers. ::
sage: eigenvalues = [ZZ.random_element() for _ in range(3)]
sage: eigenvalues = sample(range(-20, 21), 3)
sage: B = random_matrix(QQ, 6, algorithm='diagonalizable',
....: eigenvalues=eigenvalues, dimensions=[2,3,1])
sage: all(x in ZZ for x in (B-(-12*identity_matrix(6))).rref().list())
Expand Down

0 comments on commit 4a59ec1

Please sign in to comment.