836d807557d140b2634174733c6fb55f691b6d8c,geomstats/special_orthogonal_group.py,SpecialOrthogonalGroup,belongs,#SpecialOrthogonalGroup#Any#Any#,79

Before Change


        if point_type == "vector":
            point = gs.to_ndarray(point, to_ndim=2)
            _, vec_dim = point.shape
            return vec_dim == self.dimension

        elif point_type == "matrix":
            point = gs.to_ndarray(point, to_ndim=3)
            point_transpose = gs.transpose(point, axes=(0, 2, 1))

After Change


        if point_type == "vector":
            point = gs.to_ndarray(point, to_ndim=2)
            _, 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)
            return belongs

        elif point_type == "matrix":
            point = gs.to_ndarray(point, to_ndim=3)
            point_transpose = gs.transpose(point, axes=(0, 2, 1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: geomstats/geomstats
Commit Name: 836d807557d140b2634174733c6fb55f691b6d8c
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 626523c8e86f35f215e482bb49bd6b1359b4a0e0
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: belongs