edcbc642ae1518a049471747fd89909c5f841b84,geomstats/special_euclidean_group.py,SpecialEuclideanGroup,exponential_matrix,#SpecialEuclideanGroup#Any#,422

Before Change


        angle = np.linalg.norm(rot_vec, axis=1)
        if angle.ndim == 1:
            angle = np.expand_dims(angle, axis=1)
        assert angle.shape == (n_rot_vecs, 1), angle.shape
        skew_rot_vec = so_group.skew_matrix_from_vector(rot_vec)

        coef_1 = np.empty_like(angle)
        coef_2 = np.empty_like(coef_1)

After Change


        n_rot_vecs, _ = rot_vec.shape

        angle = np.linalg.norm(rot_vec, axis=1)
        angle = vectorization_utils.expand_dims(angle, to_ndim=2, axis=1)

        skew_rot_vec = so_group.skew_matrix_from_vector(rot_vec)

        coef_1 = np.empty_like(angle)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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: exponential_matrix


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_exp_from_identity


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: 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