lbfgsb.rosenbrock_grad#
- lbfgsb.rosenbrock_grad(x: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]#
The gradient of the Rosenbrock function.
- Parameters:
x (array_like) – Array of of points at which the Rosenbrock function is to be computed. It can be of shape (m,) or (m, n), m being the number of variables per vector of parameters and n the number of different vectors.
- Returns:
The gradient(s) of the Rosenbrock function with the same shapes as the input x.
- Return type:
NDArrayFloat