def test_active_matrices_from_extrinsic_euler_angles_1dim_output_variable():
    random_state = np.random.RandomState(8385)
    e = random_state.randn(10, 3)
    Rs = np.empty((10, 3, 3))
    pbr.active_matrices_from_extrinsic_euler_angles(2, 1, 0, e, out=Rs)
    for i in range(len(e)):
        Ri = pr.active_matrix_from_extrinsic_euler_zyx(e[i])
        assert_array_almost_equal(Rs[i], Ri)
def test_active_matrices_from_extrinsic_euler_angles_1dim():
    random_state = np.random.RandomState(8384)
    e = random_state.randn(10, 3)
    Rs = pbr.active_matrices_from_extrinsic_euler_angles(2, 1, 0, e)
    for i in range(len(e)):
        Ri = pr.active_matrix_from_extrinsic_euler_zyx(e[i])
        assert_array_almost_equal(Rs[i], Ri)
def test_active_matrices_from_extrinsic_euler_angles_0dims():
    random_state = np.random.RandomState(8383)
    e = random_state.randn(3)
    R = pbr.active_matrices_from_extrinsic_euler_angles(2, 1, 0, e)
    R2 = pr.active_matrix_from_extrinsic_euler_zyx(e)
    assert_array_almost_equal(R, R2)