def __init__(self, epsilon=0.): LieGroup.__init__( self, dim=3, default_point_type='vector') self.n = 3 self.epsilon = epsilon self.bi_invariant_metric = BiInvariantMetric(group=self)
def __init__(self, n, epsilon=0.0): dim = n * (n + 1) // 2 LieGroup.__init__(self, dim=dim, default_point_type="vector") self.n = n self.epsilon = epsilon self.rotations = SpecialOrthogonal(n=n, point_type="vector", epsilon=epsilon) self.translations = Euclidean(dim=n)
class TestLieGroupMethods(geomstats.tests.TestCase): dimension = 4 group = LieGroup(dim=dimension) def test_dimension(self): result = self.group.dim expected = self.dimension self.assertAllClose(result, expected)
class TestLieGroupMethods(geomstats.tests.TestCase): _multiprocess_can_split_ = True dimension = 4 group = LieGroup(dimension=dimension) def test_dimension(self): result = self.group.dimension expected = self.dimension self.assertAllClose(result, expected)
def log(self, point, base_point=None): return LieGroup.log(self, point, base_point)
def exp(self, tangent_vec, base_point=None): return LieGroup.exp(self, tangent_vec, base_point)
def __init__(self, n): assert isinstance(n, int) and n > 0 LieGroup.__init__(self, dimension=n * n) MatricesSpace.__init__(self, m=n, n=n)