def test_skew(self): assert_array_equal(skewmat(zeros(3)), zeros((3, 3))) assert_array_equal(skewmat([1, 2, 3]), array([ [0, -3, 2], [3, 0, -1], [-2, 1, 0], ]))
def test_update_skew(self): x = zeros((3, 3)) for v in ([0, 0, 0], [1, 2, 3]): update_skewmat(x, v) assert_array_equal(x, skewmat(v))