27a8a6e2b443aec559e2b6b89a94b4b51854fe6a,geomstats/riemannian_metric.py,RiemannianMetric,geodesic,#RiemannianMetric#Any#Any#Any#Any#,178

Before Change


        if end_point is not None:
            shooting_tangent_vec = self.log(point=end_point, base_point=initial_point)
            if initial_tangent_vec is not None:
                assert shooting_tangent_vec == initial_tangent_vec
            initial_tangent_vec = shooting_tangent_vec

        def point_on_geodesic(t):
            t = vectorization.to_ndarray(t, to_ndim=1)

After Change


            raise ValueError("Specify an end point or an initial tangent "
                             "vector to define the geodesic.")
        if end_point is not None:
            end_point = vectorization.to_ndarray(end_point, to_ndim=2)
            shooting_tangent_vec = self.log(point=end_point, base_point=initial_point)
            if initial_tangent_vec is not None:
                assert np.allclose(shooting_tangent_vec, initial_tangent_vec)
            initial_tangent_vec = shooting_tangent_vec
        initial_tangent_vec = vectorization.to_ndarray(initial_tangent_vec, to_ndim=2)

        def point_on_geodesic(t):
            t = vectorization.to_ndarray(t, to_ndim=1)
            t = vectorization.to_ndarray(t, to_ndim=2, axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: 27a8a6e2b443aec559e2b6b89a94b4b51854fe6a
Time: 2018-04-13
Author: ninamio78@gmail.com
File Name: geomstats/riemannian_metric.py
Class Name: RiemannianMetric
Method Name: geodesic


Project Name: geomstats/geomstats
Commit Name: 6f4671eb1b466bf5c484dea3830d4e1bb61709b8
Time: 2018-05-03
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: __init__


Project Name: geomstats/geomstats
Commit Name: 6f24156319db9e6a65af826b0aa817647ccef577
Time: 2018-07-24
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: regularize