ott.geometry.grid.Grid.apply_kernel#
- Grid.apply_kernel(vec, eps=None, axis=None)[source]#
Apply grid kernel on scaling vector.
See notes in parent class for use.
Reshapes scaling vector as a grid, applies kernels onto each slice, and then ravels backs the output as a vector.
More implementation details in [Schmitz et al., 2018],