Repository navigation
Added
- Costs
|x - y|^p: the optionp(Options::pin C++,p=in Python) solves the transport for any power of the Euclidean distance,p > 0, with every method (closed form on the line forp >= 1). The plan, its cost, the potentials andcertifyuse the same exponent;Plan::precords it. The PyTorch gradients follow the exponent. - The default stays
p = 2, and onlyp = 2keeps the single precision filter of the pricing: its speed is unchanged.
Notes
- The automatic mode is tuned for
p = 2. For another exponent it is slower than the plain simplex up to a few thousand points, and the best method changes from one problem to the next: runtuneonce on a typical problem and reuse its options. Measurements in the documentation. wasserstein2keeps the squared distance and refuses anotherp.
Full changelog: v0.1.0...v0.2.0