---
title: MPSNDArray
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsndarray
---

# MPSNDArray

## Declaration

```swift
class MPSNDArray
```

## Topics

### Initializers

- [init(buffer:offset:descriptor:)](metalperformanceshaders/mpsndarray/init(buffer:offset:descriptor:).md)
- [init(device:descriptor:)](metalperformanceshaders/mpsndarray/init(device:descriptor:).md)
- [init(device:scalar:)](metalperformanceshaders/mpsndarray/init(device:scalar:).md)

### Instance Properties

- [dataType](metalperformanceshaders/mpsndarray/datatype.md)
- [dataTypeSize](metalperformanceshaders/mpsndarray/datatypesize.md)
- [device](metalperformanceshaders/mpsndarray/device.md)
- [label](metalperformanceshaders/mpsndarray/label.md)
- [numberOfDimensions](metalperformanceshaders/mpsndarray/numberofdimensions.md)
- [parent](metalperformanceshaders/mpsndarray/parent.md)

### Instance Methods

- [arrayView(with:)](metalperformanceshaders/mpsndarray/arrayview(with:).md)
- [arrayView(with:descriptor:aliasing:)](metalperformanceshaders/mpsndarray/arrayview(with:descriptor:aliasing:).md)
- [arrayView(withDimensionCount:dimensionSizes:strides:)](metalperformanceshaders/mpsndarray/arrayview(withdimensioncount:dimensionsizes:strides:).md)
- [arrayView(withShape:strides:)](metalperformanceshaders/mpsndarray/arrayview(withshape:strides:).md)
- [descriptor()](metalperformanceshaders/mpsndarray/descriptor().md)
- [exportData(with:to:destinationDataType:offset:rowStrides:)](metalperformanceshaders/mpsndarray/exportdata(with:to:destinationdatatype:offset:rowstrides:).md)
- [exportData(with:to:offset:)](metalperformanceshaders/mpsndarray/exportdata(with:to:offset:).md)
- [importData(with:from:offset:)](metalperformanceshaders/mpsndarray/importdata(with:from:offset:).md)
- [importData(with:from:sourceDataType:offset:rowStrides:)](metalperformanceshaders/mpsndarray/importdata(with:from:sourcedatatype:offset:rowstrides:).md)
- [length(ofDimension:)](metalperformanceshaders/mpsndarray/length(ofdimension:).md)
- [readBytes(_:strideBytes:)](metalperformanceshaders/mpsndarray/readbytes(_:stridebytes:).md)
- [resourceSize()](metalperformanceshaders/mpsndarray/resourcesize().md)
- [synchronize(on:)](metalperformanceshaders/mpsndarray/synchronize(on:).md)
- [userBuffer()](metalperformanceshaders/mpsndarray/userbuffer().md)
- [writeBytes(_:strideBytes:)](metalperformanceshaders/mpsndarray/writebytes(_:stridebytes:).md)

### Type Methods

- [defaultAllocator()](metalperformanceshaders/mpsndarray/defaultallocator().md)

## Relationships

### Inherits From

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

### Inherited By

- [MPSTemporaryNDArray](metalperformanceshaders/mpstemporaryndarray.md)

### Conforms To

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