b0d0053b1f1738640fc99fba642c83af42d10b22,geomstats/invariant_metric.py,InvariantMetric,exp_from_identity,#InvariantMetric#Any#,81

Before Change



            exp = self.lie_group.inverse(opp_left_exp)
        print("exp from identity before reg: {}")
        print(exp.shape)
        exp = self.lie_group.regularize(exp)
        return exp

    def exp(self, tangent_vec, base_point):

After Change


        Compute the Riemannian exponential from the identity of the
        Lie group of tangent vector tangent_vec.
        
        if tangent_vec.ndim == 1:
            tangent_vec = np.expand_dims(tangent_vec, axis=0)
        assert tangent_vec.ndim == 2

        if self.left_or_right == "left":
            exp = self.left_exp_from_identity(tangent_vec)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: exp_from_identity


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: exp


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: left_exp_from_identity