<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSNDArrayDescriptor/makeArray(of:batchSize:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So21BNNSNDArrayDescriptora10AccelerateE9makeArray2of9batchSizeSayxGSgxm_SitlF"
  },
  "title" : "makeArray(of:batchSize:)"
}
-->

# makeArray(of:batchSize:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)