---
title: isContiguous
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/ndarray/mutableview/iscontiguous
---

# isContiguous

Returns true if the elements in this view have a row-major contiguous layout.

## Declaration

```swift
var isContiguous: Bool { get }
```

## Discussion

Discussion note: If this returns false, then contiguousElements will return nil.

## See Also

### Inspecting the view

- [rank](coreai/ndarray/mutableview/rank.md)
- [shape](coreai/ndarray/mutableview/shape.md)
- [strides](coreai/ndarray/mutableview/strides.md)
