68de941658340c3022b54c60a19a159374e36e36,geomstats/euclidean_space.py,EuclideanSpace,belongs,#EuclideanSpace#Any#,18

Before Change


        
        Check if point belongs to the Euclidean space.
        
        if point.ndim == 1:
            point = np.expand_dims(point, axis=0)
        return point.shape[1] == self.dimension

    def random_uniform(self, n_samples=1):
        

After Change


        Check if point belongs to the Euclidean space.
        
        point = vectorization_utils.expand_dim(point, to_ndim=2)
        _, point_dim = point.shape
        return point_dim == self.dimension

    def random_uniform(self, n_samples=1):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: geomstats/geomstats
Commit Name: 68de941658340c3022b54c60a19a159374e36e36
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/euclidean_space.py
Class Name: EuclideanSpace
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: SpecialOrthogonalGroup
Method Name: rotation_vector_from_matrix


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: 37d6a53cad2695ee387cfa6ffd0e88f96e8ff699
Time: 2018-03-16
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name:
Method Name: vector_from_skew_matrix


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