From cd154a28ff7a09cbceccf4e49f507525a5776a8c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 10 Nov 2024 10:52:08 +0100 Subject: [PATCH] Fix snf_with_transform issue over non-domain See https://github.com/oscar-system/Oscar.jl/issues/4293 --- src/Matrix.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matrix.jl b/src/Matrix.jl index e256ab2dad..d4fd64db34 100644 --- a/src/Matrix.jl +++ b/src/Matrix.jl @@ -5285,7 +5285,7 @@ function snf_kb!(S::MatrixElem{T}, U::MatrixElem{T}, K::MatrixElem{T}, with_traf K[r, j] = reduce!(t1 + t2) end end - S[j, j] = divexact(S[i, i]*S[j, j], d) + S[j, j] = S[i, i]*divexact(S[j, j], d) S[i, i] = d end end