626523c8e86f35f215e482bb49bd6b1359b4a0e0,tests/test_special_orthogonal_group.py,TestSpecialOrthogonalGroupMethods,test_skew_matrix_from_vector,#TestSpecialOrthogonalGroupMethods#,157

Before Change


        n = 3
        group = self.so[n]
        rot_vec = gs.random.rand(n)
        result = group.skew_matrix_from_vector(rot_vec)[0]

        self.assertTrue(gs.allclose(gs.dot(result, rot_vec), gs.zeros(n)))

After Change


        n = 3
        group = self.so[n]
        rot_vec = gs.array([0.9, -0.5, 1.1])
        skew_matrix = group.skew_matrix_from_vector(rot_vec)
        result = gs.dot(skew_matrix[0], rot_vec)
        expected = gs.zeros(n)

        self.assertAllClose(result, expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: geomstats/geomstats
Commit Name: 626523c8e86f35f215e482bb49bd6b1359b4a0e0
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_skew_matrix_from_vector


Project Name: geomstats/geomstats
Commit Name: 9af960b1abfa1bb7458608915161f1804b04c90e
Time: 2018-10-21
Author: null
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_skew_matrix_from_vector


Project Name: geomstats/geomstats
Commit Name: 836d807557d140b2634174733c6fb55f691b6d8c
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_skew_matrix_from_vector