Skip to content

Commit b4a2ad2

Browse files
populated docstrig for _basic_slice_meta
1 parent 6579e6b commit b4a2ad2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpctl/tensor/_slicing.pxi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ import numbers
2020
cdef object _basic_slice_meta(object ind, tuple shape,
2121
tuple strides, Py_ssize_t offset):
2222
"""
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.
2326
27+
Raises IndexError for invalid index `ind`, and NotImplementedError
28+
if `ind` is an array.
2429
"""
2530
if ind is Ellipsis:
2631
return (shape, strides, offset)

0 commit comments

Comments
 (0)