---
title: contiguousElements
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/ndarray/view/contiguouselements
---

# contiguousElements

Returns a Span over the backing memory of this view if the memory is in a contiguous layout, otherwise returns nil.

## Declaration

```swift
var contiguousElements: Span<Element>? { get }
```

## Discussion

Discussion note: contiguous here refers to elements in row-major order with zero padding.
