operators.gradient_vals

operators.gradient_vals(x, field, cloud, rbf, max_degree)

Computes the gradient of the field (given by its values) at position x

Args: x (Float[Array, “dim”]): The position at which to conmpute the gradient value centers (Float[Array, “nb_centers, dim”]): The centroids of the RBF to use rbf (callable): The rbf to use. (Currently mandadatory, despite the signature.) clip_val (float, optional): The limit to which to clip the value to avoid blowup. Defaults to None.

Returns: Float[Array, “dim”]: The gradient of the field at x