276d53ecd49afcf7d055a9c55ac51e6eaecc06e7,geomstats/geometry/product_manifold.py,ProductManifold,regularize,#ProductManifold#Any#Any#,85

Before Change


            regularize_points = gs.vstack(regularize_points)
        return gs.all(regularize_points)

        return regularize_points

    def geodesic(self, initial_point,
                 end_point=None, initial_tangent_vec=None, point_type=None):
        Compute geodesic curve for a product metric.

After Change


            point_type = self.default_point_type
        assert point_type in ["vector", "matrix"]

        regularized_point = [
            manifold_i.regularize(point_i)
            for manifold_i, point_i in zip(self.manifolds, point)]

        // TODO(nina): Put this in a decorator
        if point_type == "vector":
            regularized_point = gs.hstack(regularized_point)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: geomstats/geomstats
Commit Name: 276d53ecd49afcf7d055a9c55ac51e6eaecc06e7
Time: 2020-02-17
Author: yann.cabanes@u-bordeaux.fr
File Name: geomstats/geometry/product_manifold.py
Class Name: ProductManifold
Method Name: regularize


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