strides#

ivy.strides(x, /)[source]#

Return the input array’s strides across each dimension.

Parameters:

x (Union[Array, NativeArray]) – The input array.

Return type:

Tuple[int]

Returns:

ret – A tuple containing the strides.

Examples

>>> x = ivy.array([[1, 5, 9], [2, 6, 10]])
>>> ivy.strides(x)
(4, 8)
Array.strides()#

Get strides across each dimension.

Container.strides(self, /)[source]#

Container instance method variant of ivy.strides. This method simply wraps the function, and so the docstring for ivy.strides also applies to this method with minimal changes.

Parameters:

self (Container) – The input container.

Return type:

Container

Returns:

ret – A tuple containing the strides.