def test_num_9():
    content = ak.layout.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9]))
    index = ak.layout.Index32(np.array([0, 2, 4, 6, 8, 9, 7, 5], dtype=np.int64))
    indexedarray = ak.Array(ak.layout.IndexedArray32(index, content))
    cuda_indexedarray = ak.to_kernels(indexedarray, 'cuda')
    assert (ak.num(cuda_indexedarray, 0) == ak.num(indexedarray, 0))
    ioa = ak.Array(ak.layout.IndexedOptionArray32(ak.layout.Index32([(- 30), 19, 6, 7, (- 3), 21, 13, 22, 17, 9, (- 12), 16]), ak.layout.NumpyArray(np.array([5.2, 1.7, 6.7, (- 0.4), 4.0, 7.8, 3.8, 6.8, 4.2, 0.3, 4.6, 6.2, 6.9, (- 0.7), 3.9, 1.6, 8.7, (- 0.7), 3.2, 4.3, 4.0, 5.8, 4.2, 7.0, 5.6, 3.8]))))
    cuda_ioa = ak.to_kernels(ioa, 'cuda')
    ak.to_kernels(cuda_ioa, 'cpu')
    assert (ak.num(cuda_ioa, 0) == ak.num(ioa, 0))
def test_num_9():
    content = ak.layout.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9]))
    index = ak.layout.Index32(np.array([0, 2, 4, 6, 8, 9, 7, 5], dtype=np.int64))
    indexedarray = ak.Array(ak.layout.IndexedArray32(index, content))
    cuda_indexedarray = ak.to_kernels(indexedarray, 'cuda')
    assert (ak.num(cuda_indexedarray, 0) == ak.num(indexedarray, 0))
    ioa = ak.Array(ak.layout.IndexedOptionArray32(ak.layout.Index32([(- 30), 19, 6, 7, (- 3), 21, 13, 22, 17, 9, (- 12), 16]), ak.layout.NumpyArray(np.array([5.2, 1.7, 6.7, (- 0.4), 4.0, 7.8, 3.8, 6.8, 4.2, 0.3, 4.6, 6.2, 6.9, (- 0.7), 3.9, 1.6, 8.7, (- 0.7), 3.2, 4.3, 4.0, 5.8, 4.2, 7.0, 5.6, 3.8]))))
    cuda_ioa = ak.to_kernels(ioa, 'cuda')
    ak.to_kernels(cuda_ioa, 'cpu')
    assert (ak.num(cuda_ioa, 0) == ak.num(ioa, 0))