From 60d6923c938ea20a05c7f836a3b70e6123a239fd Mon Sep 17 00:00:00 2001 From: Matthias Zach <85350711+HechtiDerLachs@users.noreply.github.com> Date: Fri, 29 Sep 2023 12:50:02 +0200 Subject: [PATCH] Avoid creating parent object for matrix. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lars Göttgens --- src/Rings/mpoly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rings/mpoly.jl b/src/Rings/mpoly.jl index 029c0788371a..c7d54f664e18 100644 --- a/src/Rings/mpoly.jl +++ b/src/Rings/mpoly.jl @@ -1300,7 +1300,7 @@ function hessian_matrix(f::MPolyElem) R = parent(f) n = nvars(R) df = jacobi_matrix(f) - result = zero(MatrixSpace(R, n, n)) + result = zero_matrix(R, n, n) for i in 1:n for j in i:n result[i, j] = result[j, i] = derivative(df[i], j)