Please read Please read: make it easier to help you, and remember to include a minimal working example.
It’s likely because your function a
takes arguments x
and grad
, but doesn’t use them. Instead, it uses A
which isn’t defined.
Please read Please read: make it easier to help you, and remember to include a minimal working example.
It’s likely because your function a
takes arguments x
and grad
, but doesn’t use them. Instead, it uses A
which isn’t defined.