b0d0053b1f1738640fc99fba642c83af42d10b22,geomstats/special_euclidean_group.py,SpecialEuclideanGroup,group_log_from_identity,#SpecialEuclideanGroup#Any#,201

Before Change


            psi = 0.5 * angle * np.sin(angle) / (1 - np.cos(angle))
            coef_2 = (1 - psi) / (angle ** 2)

        group_log[3:6] = (translation
                          + coef_1 * np.dot(translation,
                                            skew_rot_vec.transpose())
                          + coef_2 * np.dot(translation,
                                            sq_skew_rot_vec.transpose()))
        return group_log

    def random_uniform(self):
        

After Change


            psi = 0.5 * angle * np.sin(angle) / (1 - np.cos(angle))
            coef_2 = (1 - psi) / (angle ** 2)

        term_1 = coef_1 * np.dot(translation,
                                 np.transpose(skew_rot_vec, axes=(0, 2, 1)))
        term_2 = coef_2 * np.dot(translation,
                                 np.transpose(sq_skew_rot_vec, axes=(0, 2, 1)))

        group_log[:, 3:6] = translation + term_1 + term_2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: group_log_from_identity


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: group_log_from_identity


Project Name: geomstats/geomstats
Commit Name: 2e296adb05f62e4821c36b6f42b1470bdb10eaa6
Time: 2018-02-05
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: compose


Project Name: drckf/paysage
Commit Name: 41bd741fef07076d854bb164b5df764e9fcc6a2a
Time: 2017-04-17
Author: geminatea@gmail.com
File Name: paysage/models/tap_machine.py
Class Name: TAP_rbm
Method Name: gradient