---
title: MLMultiArrayConstraint
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlmultiarrayconstraint
---

# MLMultiArrayConstraint

The shape and data type constraints for a multidimensional array feature.

## Declaration

```swift
class MLMultiArrayConstraint
```

## Topics

### Accessing the Constraints

- [shape](coreml/mlmultiarrayconstraint/shape.md)
- [dataType](coreml/mlmultiarrayconstraint/datatype.md)
- [shapeConstraint](coreml/mlmultiarrayconstraint/shapeconstraint.md)
- [MLMultiArrayShapeConstraint](coreml/mlmultiarrayshapeconstraint.md)

### Initializers

- [init(coder:)](coreml/mlmultiarrayconstraint/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Accessing feature constraints

- [stateConstraint](coreml/mlfeaturedescription/stateconstraint.md)
- [imageConstraint](coreml/mlfeaturedescription/imageconstraint.md)
- [MLImageConstraint](coreml/mlimageconstraint.md)
- [dictionaryConstraint](coreml/mlfeaturedescription/dictionaryconstraint.md)
- [MLDictionaryConstraint](coreml/mldictionaryconstraint.md)
- [multiArrayConstraint](coreml/mlfeaturedescription/multiarrayconstraint.md)
- [sequenceConstraint](coreml/mlfeaturedescription/sequenceconstraint.md)
- [MLSequenceConstraint](coreml/mlsequenceconstraint.md)
