splinepy.helpme.mapper.Mapper.divergence#
- Mapper.divergence(queries, nthreads=None)[source]#
Map field divergence (where applicable) into the physical domain
Returns scalar values for each query. See class documentation for more details.
- Parameters:
queries ((n, para_dim) array-like) – Points for evaluation
nthreads (int) – Threads used for calculation
- Returns:
gradient
- Return type:
np.ndarray