One useful feature of the Python math module is quick access to mathematical constants. You can make Python more effective as ...
Then we cut the obtained jacobian in chuncks. I think this was done before we knew that vmap can be applied to a function that returns a Pytree, i.e., it could be a tuple that we then don't need to ...