<!--
{
  "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/init(data:shape:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So21BNNSNDArrayDescriptora10AccelerateE4data5shapeABSgSryxG_AC4BNNSO5ShapeOtcAC10BNNSScalarRzlufc"
  },
  "title" : "init(data:shape:)"
}
-->

# init(data:shape:)

Returns a new n-dimensional array descriptor that references the same data as the specified pointer.

```
init?<T>(data: UnsafeMutableBufferPointer<T>, shape: BNNS.Shape) where T : BNNSScalar
```

## Parameters

`data`

A pointer to the underlying data.

`shape`

The shape of the n-dimensional array descriptor.

---

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)