---
title: scalarType
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/ndarraydescriptor/scalartype
---

# scalarType

The scalar type of the array.

## Declaration

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

## See Also

### Inspecting descriptor properties

- [shape](coreai/ndarraydescriptor/shape.md)
- [rank](coreai/ndarraydescriptor/rank.md)
- [hasDynamicShape](coreai/ndarraydescriptor/hasdynamicshape.md)
