---
title: "init(shape:strides:contents:)"
framework: tabulardata
role: symbol
role_heading: Initializer
path: "tabulardata/shapeddata/init(shape:strides:contents:)"
---

# init(shape:strides:contents:)

Creates a multidimensional shaped array from a one-dimensional array.

## Declaration

```swift
init(shape: [Int], strides: [Int], contents: [Element])
```

## Parameters

- `shape`: An integer array that stores the size of each dimension in the corresponding element.
- `strides`: An integer array that stores the number of memory locations that span the length of each dimension in the corresponding element.
- `contents`: A linear array that stores the elements of the multidimensional array.
