36637598430395f69daa3c9479567d27e7d26eb3,geomstats/geometry/special_orthogonal.py,SpecialOrthogonal,belongs,#SpecialOrthogonal#Any#Any#,89

Before Change



        if point_type == "vector":
            point = gs.to_ndarray(point, to_ndim=2)
            n_points, vec_dim = point.shape
            belongs = vec_dim == self.dimension
            belongs = gs.to_ndarray(belongs, to_ndim=1)
            belongs = gs.to_ndarray(belongs, to_ndim=2, axis=1)
            belongs = gs.tile(belongs, (n_points, 1))
            return belongs

        if point_type == "matrix":
            point = gs.to_ndarray(point, to_ndim=3)

After Change


            point_type = self.default_point_type

        if point_type == "vector":
            vec_dim = point.shape[-1]
            belongs = vec_dim == self.dimension
            if point.ndim == 2:
                belongs = gs.tile([belongs], (point.shape[0],))
            return belongs

        if point_type == "matrix":
            point = gs.to_ndarray(point, to_ndim=3)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: geomstats/geomstats
Commit Name: 36637598430395f69daa3c9479567d27e7d26eb3
Time: 2020-04-06
Author: ninamio78@gmail.com
File Name: geomstats/geometry/special_orthogonal.py
Class Name: SpecialOrthogonal
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 36637598430395f69daa3c9479567d27e7d26eb3
Time: 2020-04-06
Author: ninamio78@gmail.com
File Name: geomstats/geometry/special_orthogonal.py
Class Name: SpecialOrthogonal
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 38c5d1083c3d7bbb71dd2d54ddf958c3f0e78481
Time: 2020-04-06
Author: ninamio78@gmail.com
File Name: geomstats/geometry/minkowski.py
Class Name: Minkowski
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 2c665f039cb324338b37aca116306a252f926ecb
Time: 2020-04-03
Author: ninamio78@gmail.com
File Name: geomstats/geometry/euclidean.py
Class Name: Euclidean
Method Name: belongs