![]() |
SemiDiscreteOT 1.0
Semi-Discrete Optimal Transport Library
|
A collection of distance functions, their gradients, and exponential maps. More...
#include <deal.II/base/point.h>
Go to the source code of this file.
Functions | |
template<int spacedim> | |
double | euclidean_distance (const Point< spacedim > a, const Point< spacedim > b) |
Computes the Euclidean distance between two points. | |
template<int spacedim> | |
double | spherical_distance (const Point< spacedim > a, const Point< spacedim > b) |
Computes the spherical distance between two points. | |
template<int spacedim> | |
Vector< double > | euclidean_distance_gradient (const Point< spacedim > a, const Point< spacedim > b) |
Computes the gradient of the squared Euclidean distance. | |
template<int spacedim> | |
Vector< double > | spherical_distance_gradient (const Point< spacedim > a, const Point< spacedim > b) |
Computes the gradient of the squared spherical distance. | |
template<int spacedim> | |
Point< spacedim > | euclidean_distance_exp_map (const Point< spacedim > a, const Vector< double > v) |
Computes the exponential map for the Euclidean distance. | |
template<int spacedim> | |
Point< spacedim > | spherical_distance_exp_map (const Point< spacedim > a, const Vector< double > v) |
Computes the exponential map for the spherical distance. | |
A collection of distance functions, their gradients, and exponential maps.
Definition in file Distance.h.
double euclidean_distance | ( | const Point< spacedim > | a, |
const Point< spacedim > | b | ||
) |
Computes the Euclidean distance between two points.
a | The first point. |
b | The second point. |
Definition at line 24 of file Distance.h.
double spherical_distance | ( | const Point< spacedim > | a, |
const Point< spacedim > | b | ||
) |
Computes the spherical distance between two points.
a | The first point. |
b | The second point. |
Definition at line 36 of file Distance.h.
Vector< double > euclidean_distance_gradient | ( | const Point< spacedim > | a, |
const Point< spacedim > | b | ||
) |
Computes the gradient of the squared Euclidean distance.
a | The first point. |
b | The second point. |
Definition at line 62 of file Distance.h.
Vector< double > spherical_distance_gradient | ( | const Point< spacedim > | a, |
const Point< spacedim > | b | ||
) |
Computes the gradient of the squared spherical distance.
a | The first point. |
b | The second point. |
Definition at line 79 of file Distance.h.
Point< spacedim > euclidean_distance_exp_map | ( | const Point< spacedim > | a, |
const Vector< double > | v | ||
) |
Computes the exponential map for the Euclidean distance.
a | The point. |
v | The vector. |
Definition at line 103 of file Distance.h.
Point< spacedim > spherical_distance_exp_map | ( | const Point< spacedim > | a, |
const Vector< double > | v | ||
) |
Computes the exponential map for the spherical distance.
a | The point. |
v | The vector. |
Definition at line 120 of file Distance.h.