37d6a53cad2695ee387cfa6ffd0e88f96e8ff699,geomstats/special_orthogonal_group.py,SpecialOrthogonalGroup,belongs,#SpecialOrthogonalGroup#Any#,96

Before Change


        Check that a vector belongs to the
        special orthogonal group.
        
        if rot_vec.ndim == 1:
            rot_vec = np.expand_dims(rot_vec, axis=0)

        assert rot_vec.ndim == 2

        return rot_vec.shape[1] == self.dimension

    def regularize(self, rot_vec):
        

After Change


        Check that a vector belongs to the
        special orthogonal group.
        
        rot_vec = vectorization_utils.expand_dims(rot_vec, to_dim=2)
        _, vec_dim = rot_vec.shape
        return vec_dim == self.dimension

    def regularize(self, rot_vec):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 11

Instances


Project Name: geomstats/geomstats
Commit Name: 37d6a53cad2695ee387cfa6ffd0e88f96e8ff699
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: edcbc642ae1518a049471747fd89909c5f841b84
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: group_exponential_barycenter


Project Name: geomstats/geomstats
Commit Name: 68de941658340c3022b54c60a19a159374e36e36
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/minkowski_space.py
Class Name: MinkowskiSpace
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 68de941658340c3022b54c60a19a159374e36e36
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/matrix_lie_group.py
Class Name: MatrixLieGroup
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: 37d6a53cad2695ee387cfa6ffd0e88f96e8ff699
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: skew_matrix_from_vector