fd47e5b875c44b7dd511b192d6c7dbcfdb010ef7,geomstats/geometry/lie_group.py,LieGroup,exp,#LieGroup#Any#Any#Any#,236
Before Change
if n_base_points == 1:
base_point = gs.array([base_point[0]] * n_tangent_vecs)
result = gs.cond(
pred=gs.allclose(base_point, identity),
true_fn=lambda: self.exp_from_identity(
tangent_vec, point_type=point_type
),
false_fn=lambda: self.exp_not_from_identity(
tangent_vec, base_point, point_type))
return result
def log_from_identity(self, point, point_type=None):
Compute the group logarithm of `point` from the identity.
After Change
if n_base_points == 1:
base_point = gs.array([base_point[0]] * n_tangent_vecs)
if gs.allclose(base_point, identity):
result = self.exp_from_identity(tangent_vec, point_type=point_type)
else:
result = self.exp_not_from_identity(
tangent_vec, base_point, point_type)
return result
def log_from_identity(self, point, point_type=None):
Compute the group logarithm of `point` from the identity.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: fd47e5b875c44b7dd511b192d6c7dbcfdb010ef7
Time: 2020-04-08
Author: niklas.koep@gmail.com
File Name: geomstats/geometry/lie_group.py
Class Name: LieGroup
Method Name: exp
Project Name: calico/basenji
Commit Name: f5ef1717933abb45db9669a724a6a4404818375b
Time: 2019-06-22
Author: drk@calicolabs.com
File Name: basenji/metrics.py
Class Name: StochasticReverseComplement
Method Name: call
Project Name: geomstats/geomstats
Commit Name: fd47e5b875c44b7dd511b192d6c7dbcfdb010ef7
Time: 2020-04-08
Author: niklas.koep@gmail.com
File Name: geomstats/geometry/lie_group.py
Class Name: LieGroup
Method Name: log