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

# contiguousElements

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

## Declaration

```swift
@export(implementation) var contiguousElements: MutableSpan<Element>? { mutating get }
```

## Discussion

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