def givens_rotation_test_180(atol=1e-15): R = givens_rotation_matrix(1, 2, np.pi, 4) e0 = np.array([0, 1, 1, 1]) e1 = np.array([0, 0, -1, 0]) e2 = np.array([0, 0, 0, 0]) t0 = np.array([0, -1, -1, 1]) t1 = np.array([0, 0, 1, 0]) t2 = np.array([0, 0, 0, 0]) assert_allclose(R.dot(e0), t0, atol=atol) assert_allclose(R.dot(e1), t1, atol=atol) assert_allclose(R.dot(e2), t2, atol=atol)