|
deblais
Exact optimal transport between point clouds
|
Sizes at which the automatic mode changes method. More...
#include <deblais/solve.hpp>
Static Public Member Functions | |
| static constexpr std::size_t | decompositionFrom (int dim) |
| Threshold of Method::decomposition in a given dimension. | |
| static constexpr int | minSize (std::size_t n) |
| Automatic size of the coarsest level of the multiscale start. | |
Static Public Attributes | |
| static constexpr std::size_t | decomposition = 2000 |
| Number of points of the larger cloud from which Method::decomposition replaces Method::simplex, in dimension 3 and above. | |
| static constexpr std::size_t | decomposition_plane = 500 |
| The same threshold in dimension 2, where the start pays off sooner. | |
| static constexpr std::size_t | coarsening = 6 |
| Points of the larger cloud per point of the coarsest level. | |
| static constexpr std::size_t | medium = 300000 |
| Points of the larger cloud below which the domain decomposition uses cells of 384 sources instead of 512, and the pricing helper threads start at 20 000 sources instead of 100 000. | |
Sizes at which the automatic mode changes method.
Measured in dimension 2 and 3, on 1 to 192 threads: see the "Automatic mode" page of the documentation.
|
inlinestaticconstexpr |
Threshold of Method::decomposition in a given dimension.
| dim | Dimension of the points. |
|
inlinestaticconstexpr |
Automatic size of the coarsest level of the multiscale start.
| n | Number of points of the larger cloud. |
|
staticconstexpr |
Number of points of the larger cloud from which Method::decomposition replaces Method::simplex, in dimension 3 and above.
Below, the multiscale start does not pay for itself.
|
staticconstexpr |
Points of the larger cloud per point of the coarsest level.
The automatic Options::min_size is the largest of 100, 300, 1000 and 3000 that leaves at least this ratio, 100 at least.
|
staticconstexpr |
Points of the larger cloud below which the domain decomposition uses cells of 384 sources instead of 512, and the pricing helper threads start at 20 000 sources instead of 100 000.
Both save 7 to 25 % from 10 000 to 100 000 points on 16 threads, and cost 1 to 2 % from a million points on.