lbfgsb.rosenbrock#

lbfgsb.rosenbrock(x: ndarray[tuple[Any, ...], dtype[float64]]) float[source]#

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 of the Rosenbrock function with size (n,).

Return type:

float