dpnp.byte_bounds

dpnp.byte_bounds(a)[source]

Returns a 2-tuple with pointers to the end-points of the array.

For full documentation refer to numpy.lib.array_utils.byte_bounds.

Parameters:

a ({dpnp.ndarray, usm_ndarray}) -- Input array

Returns:

(low, high) -- The first integer is the first byte of the array, the second integer is just past the last byte of the array. If a is not contiguous it will not use every byte between the (low, high) values.

Return type:

tuple of 2 integers

Examples

>>> import dpnp as np
>>> I = np.eye(2, dtype=np.complex64);
>>> low, high = np.byte_bounds(I)
>>> high - low == I.size*I.itemsize
True
>>> I = np.eye(2);
>>> low, high = np.byte_bounds(I)
>>> high - low == I.size*I.itemsize
True