ott.core.initializers.GaussianInitializer.init_dual_a#

GaussianInitializer.init_dual_a(ot_prob, lse_mode)[source]#

Gaussian initialization function.

Parameters
  • ot_prob (LinearProblem) – OT problem between discrete distributions of size n and m.

  • lse_mode (bool) – Return potential if true, scaling if false.

Return type

ndarray

Returns

potential/scaling, array of size n.