rosen has experimental support for Python Array API Standard compatible
backends in addition to NumPy. Please consider testing these features
by setting an environment variable SCIPY_ARRAY_API=1 and providing
CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following
combinations of backend and device (or other capability) are supported.
For higher-dimensional input rosen broadcasts.
In the following example, we use this to plot a 2D landscape.
Note that rosen_hess does not broadcast in this manner.