Source code for geomstats.test_cases.learning.exponential_barycenter

from geomstats.geometry.euclidean import Euclidean


[docs] class EuclideanGroup(Euclidean):
[docs] @staticmethod def compose(point_a, point_b): return point_a + point_b
[docs] def log(self, point, base_point=None): if base_point is None: base_point = self.identity return point - base_point
[docs] def exp(self, tangent_vec, base_point=None): if base_point is None: return tangent_vec return super().exp(tangent_vec, base_point)
[docs] @staticmethod def inverse(point): return -point