We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6579e6b commit b4a2ad2Copy full SHA for b4a2ad2
dpctl/tensor/_slicing.pxi
@@ -20,7 +20,12 @@ import numbers
20
cdef object _basic_slice_meta(object ind, tuple shape,
21
tuple strides, Py_ssize_t offset):
22
"""
23
+ Give basic slicing index `ind` and array layout information produce
24
+ a tuple (resulting_shape, resulting_strides, resultin_offset)
25
+ used to contruct a view into underlying array.
26
27
+ Raises IndexError for invalid index `ind`, and NotImplementedError
28
+ if `ind` is an array.
29
30
if ind is Ellipsis:
31
return (shape, strides, offset)
0 commit comments