Beispiel #1
0
 def __init__(self, dimension, point_type='extrinsic', scale=1):
     super(HyperbolicMetric, self).__init__(dimension=dimension,
                                            signature=(dimension, 0, 0))
     self.embedding_metric = MinkowskiMetric(dimension + 1)
     self.point_type = point_type
     assert scale > 0, 'The scale should be strictly positive'
     self.scale = scale
Beispiel #2
0
    def __init__(self, dim, coords_type="extrinsic", scale=1):
        super(HyperboloidMetric, self).__init__(dim=dim, scale=scale)
        self.embedding_metric = MinkowskiMetric(dim + 1)

        self.coords_type = coords_type
        self.point_type = HyperbolicMetric.default_point_type

        self.scale = scale