---
title: scalarType
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/ndarray/scalartype-swift.property
---

# scalarType

The scalar type of the array.

## Declaration

```swift
var scalarType: NDArray.ScalarType { get }
```

## See Also

### Inspecting an array

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