Replies: 2 comments 2 replies
-
Can you explain what the problem is that is caused by that commit? |
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems to work for univariate functions: In [8]: hessian(f(x), [x])
Out[8]:
⎡ 2 ⎤
⎢d ⎥
⎢───(f(x))⎥
⎢ 2 ⎥
⎣dx ⎦
In [9]: hessian(f(x, y), [x, y])
Out[9]:
⎡ 2 2 ⎤
⎢ ∂ ∂ ⎥
⎢ ───(f(x, y)) ─────(f(x, y))⎥
⎢ 2 ∂y ∂x ⎥
⎢ ∂x ⎥
⎢ ⎥
⎢ 2 2 ⎥
⎢ ∂ ∂ ⎥
⎢─────(f(x, y)) ───(f(x, y)) ⎥
⎢∂y ∂x 2 ⎥
⎣ ∂y ⎦ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working on this pull request, I encountered an error while attempting to compute the Hessian matrix of a univariate function. Upon investigation, I found that this error was introduced in this commit. I questioned whether it was advisable to retain this error. Modifying the behavior of this function seemed straightforward, but lacking in-depth knowledge of the potential ramifications of such a change, I sought the community's input.
Beta Was this translation helpful? Give feedback.
All reactions