20801f5fa41aee153fda2a6b8cfa4dcbf98168b2,geomstats/geometry/lie_group.py,LieGroup,log_not_from_identity,#LieGroup#Any#Any#Any#,310
Before Change
gs.transpose(jacobian, axes=(0, 2, 1)),
)
assert gs.ndim(log) == 2
return log
def log(self, point, base_point=None, point_type=None):
Compute the group logarithm of `point` relative to `base_point`.
After Change
if point_type is None:
point_type = self.default_point_type
if point_type == "vector":
jacobian = self.jacobian_translation(
point=base_point, left_or_right="left", point_type=point_type)
point_near_id = self.compose(
self.inverse(base_point), point, point_type=point_type)
log_from_id = self.log_from_identity(
point=point_near_id, point_type=point_type)
log = gs.einsum(
"ni,nij->nj",
log_from_id,
gs.transpose(jacobian, axes=(0, 2, 1)))
return log
else:
lie_point = self.compose(self.inverse(base_point), point)
return self.compose(
base_point,
self.log_from_identity(lie_point, point_type)
)
def log(self, point, base_point=None, point_type=None):
Compute the group logarithm of `point` relative to `base_point`.
Parameters
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: geomstats/geomstats
Commit Name: 20801f5fa41aee153fda2a6b8cfa4dcbf98168b2
Time: 2020-04-07
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/lie_group.py
Class Name: LieGroup
Method Name: log_not_from_identity
Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetBatch
Method Name: test_inv_quad_log_det_many_vectors
Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetBatch
Method Name: test_inv_quad_only_many_vectors