c1f116ffdced6cf3705b37868e55c4e2b258650b,geomstats/geometry/invariant_metric.py,InvariantMetric,inner_product,#InvariantMetric#Any#Any#Any#,114
Before Change
base_point)
if self.left_or_right == "right":
raise NotImplementedError(
"inner_product not implemented for right invariant metrics.")
jacobian = self.group.jacobian_translation(base_point)
inv_jacobian = gs.linalg.inv(jacobian)
tangent_vec_a_at_id = gs.matmul(inv_jacobian, tangent_vec_a)
tangent_vec_b_at_id = gs.matmul(inv_jacobian, tangent_vec_b)
After Change
jacobian = self.group.jacobian_translation(base_point)
inv_jacobian = self.group.inverse(jacobian)
if self.left_or_right == "left":
tangent_vec_a_at_id = self.group.compose(
inv_jacobian, tangent_vec_a)
tangent_vec_b_at_id = self.group.compose(
inv_jacobian, tangent_vec_b)
elif self.left_or_right == "right":
tangent_vec_a_at_id = self.group.compose(
tangent_vec_a, inv_jacobian)
tangent_vec_b_at_id = self.group.compose(
tangent_vec_b, inv_jacobian)
inner_prod = self.inner_product_at_identity(
tangent_vec_a_at_id, tangent_vec_b_at_id)
return inner_prod
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: geomstats/geomstats
Commit Name: c1f116ffdced6cf3705b37868e55c4e2b258650b
Time: 2020-04-06
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/invariant_metric.py
Class Name: InvariantMetric
Method Name: inner_product
Project Name: geomstats/geomstats
Commit Name: d496aaefc795e176b615815e9f30f335860f013b
Time: 2018-01-22
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_log
Project Name: geomstats/geomstats
Commit Name: d496aaefc795e176b615815e9f30f335860f013b
Time: 2018-01-22
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_exp