d496aaefc795e176b615815e9f30f335860f013b,geomstats/lie_group.py,LieGroup,group_exp,#LieGroup#Any#Any#,48

Before Change


        Compute the group exponential at point base_point
        of tangent vector tangent_vec.
        
        if base_point is None:
            return self.group_exp(tangent_vec, self.identity)
        else:
            raise NotImplementedError(
                "The group exponential is not implemented.")

    def group_log(self, point, base_point=None):
        
        Compute the group logarithm at point base_point
        of the point point.

After Change


        base_point = self.regularize(base_point)

        if base_point is self.identity:
            group_exp = self.group_exp_from_identity(tangent_vec)
        else:

            jacobian = self.jacobian_translation(point=base_point,
                                                 left_or_right="left")
            inv_jacobian = np.linalg.inv(jacobian)

            tangent_vec_at_identity = np.dot(inv_jacobian, tangent_vec)
            group_exp_from_identity = self.group_exp_from_identity(
                                           tangent_vec=tangent_vec_at_identity)

            group_exp = self.compose(base_point,
                                     group_exp_from_identity)
        group_exp = self.regularize(group_exp)
        return group_exp

    def group_log_from_identity(self, point):
        
        Compute the group logarithm
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


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


Project Name: GPflow/GPflow
Commit Name: d1ac7b831ad36cd0e4bdd7980819f83208345148
Time: 2018-02-07
Author: alex.ialongo@gmail.com
File Name: gpflow/expectations.py
Class Name:
Method Name: _expectation


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