0

如何下标结构化的 Cupy 数组。我找不到关于它的文件...

arr = cp.zeros(shape=(100,), dtype=cp.dtype([('t', '<f4'), ('tri', '<i4'), ('u', '<f4'), ('v', '<f4')]))

# numpy...
arr[...]['tri']

# cupy
????
4

1 回答 1

1

Currently, CuPy does not support structured arrays. In fact, only boolean and numeric ones are listed as the supported data types in the Overview documentation.

于 2019-02-05T02:39:35.973 回答