-
Hi, Recently I have encountered a scenario where I need to process expressions like this:
which, when expanded, involves products of the grad operator (for example, one of the terms is
where I would like to know if something like this can be implemented? If so, how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could write it this way if you like: def grad_n(n: int, f, **kwargs):
for i in range(n):
f = grad(f, **kwargs)
return f I think we'd be unlikely to add such a helper function to the JAX API, since it's straightforward to define a function like this if you need it. |
Beta Was this translation helpful? Give feedback.
You could write it this way if you like:
I think we'd be unlikely to add such a helper function to the JAX API, since it's straightforward to define a function like this if you need it.