---
title: isScalar
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlshapedarrayprotocol/isscalar
---

# isScalar

A Boolean value that indicates whether the shaped array lacks a shape.

## Declaration

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

## Discussion

Discussion The value is equivalent to shape.isEmpty.

## See Also

### Inspecting a shaped array type

- [shape](coreml/mlshapedarrayprotocol/shape.md)
- [strides](coreml/mlshapedarrayprotocol/strides.md)
- [count](coreml/mlshapedarrayprotocol/count.md)
- [scalarCount](coreml/mlshapedarrayprotocol/scalarcount.md)
- [scalar](coreml/mlshapedarrayprotocol/scalar-swift.property.md)
- [scalars](coreml/mlshapedarrayprotocol/scalars.md)
- [withUnsafeShapedBufferPointer(_:)](coreml/mlshapedarrayprotocol/withunsafeshapedbufferpointer(_:).md)
