---
title: strides
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/ndarray/strides
---

# strides

The distance, in elements, between consecutive values along each dimension.

## Declaration

```swift
var strides: [Int] { get }
```

## Discussion

Discussion The strides array has the same number of elements as shape, where strides[i] describes the distance between consecutive elements in the ith dimension.

## See Also

### Inspecting an array

- [shape](coreai/ndarray/shape.md)
- [scalarType](coreai/ndarray/scalartype-swift.property.md)
