Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
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)
Пример #4
0
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)
Пример #5
0
 def log(self, point, base_point=None):
     return LieGroup.log(self, point, base_point)
Пример #6
0
 def exp(self, tangent_vec, base_point=None):
     return LieGroup.exp(self, tangent_vec, base_point)
Пример #7
0
 def __init__(self, n):
     assert isinstance(n, int) and n > 0
     LieGroup.__init__(self, dimension=n * n)
     MatricesSpace.__init__(self, m=n, n=n)