I look forward to your pull-request. TinyNdArray supports only float array. In the following Python code dtype=float32 is omitted, and in C++ code assuming using namespace tinyndarray; is declared.
You can also get the associated minimum-cost flow: extra_mass_penalty (float): The penalty for extra mass. If you want the resulting distance to be a metric, it should be at least half the diameter of ...