Skip to content

Commit

Permalink
Avoid creating parent object for matrix.
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Göttgens <[email protected]>
  • Loading branch information
HechtiDerLachs and lgoettgens authored Sep 29, 2023
1 parent e21a56d commit 60d6923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rings/mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60d6923

Please sign in to comment.