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

# makeArray(of:)

Returns an array that contains a copy of this BNNSTensor’s elements.

## Declaration

```swift
func makeArray<T>(of scalarType: T.Type) -> [T] where T : BNNSScalar
```

## Parameters

- `scalarType`: The type that the tensor’s memory is bound to.
