5c2ae503e85bfac2346ea7a562c476c943bb3ec9,geomstats/special_orthogonal_group.py,SpecialOrthogonalGroup,matrix_from_rotation_vector,#SpecialOrthogonalGroup#Any#,198

Before Change


                             axis=0)

        term_1 = coef_1 * skew_rot_vec
        term_2 = coef_2 * np.matmul(skew_rot_vec, skew_rot_vec)
        rot_mat = identity + term_1 + term_2

        rot_mat = closest_rotation_matrix(rot_mat)
        return rot_mat

After Change


        term_1 = np.zeros((n_rot_vecs, self.n, self.n))
        term_2 = np.zeros_like(term_1)

        for i in range(n_rot_vecs):
            term_1[i] = np.eye(self.dimension) + coef_1[i] * skew_rot_vec[i]
            term_2[i] = coef_2[i] * np.matmul(skew_rot_vec[i], skew_rot_vec[i])
        rot_mat = term_1 + term_2

        rot_mat = closest_rotation_matrix(rot_mat)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: geomstats/geomstats
Commit Name: 5c2ae503e85bfac2346ea7a562c476c943bb3ec9
Time: 2018-02-03
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: matrix_from_rotation_vector


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


Project Name: uber/pyro
Commit Name: 3040d26d11096c12daf417cd46912bb30f5dafab
Time: 2020-04-21
Author: fehiepsi@gmail.com
File Name: pyro/infer/mcmc/hmc.py
Class Name: HMC
Method Name: _kinetic_energy