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)