rastrigin.call_method rastrigin.call_method(*x: array) → array[source] Evaluate the Rastrigin function. Parameters: *x (np.ndarray) – Coordinates of the evaluation point. Returns: Function value. Return type: np.ndarray | float