---
title: "makeArray(of:batchSize:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsndarraydescriptor/makearray(of:batchsize:)"
---

# makeArray(of:batchSize:)

Returns a new array that contains a copy of the n-dimensional array descriptor’s data.

## Declaration

```swift
func makeArray<T>(of scalarType: T.Type, batchSize: Int = 1) -> [T]?
```

## Parameters

- `scalarType`: The data type of the data.
- `batchSize`: The number of batches of data.
