ott.geometry.grid.Grid.potential_from_scaling

ott.geometry.grid.Grid.potential_from_scaling#

Grid.potential_from_scaling(scaling)#

Compute dual potential vector from scaling vector.

Parameters:

scaling (Array) – vector.

Return type:

Array

Returns:

a vector of the same size.