init(data:shape:strides:)
Creates a shaped array from a block of data, a shape, and strides.
Declaration
init(data: Data, shape: [Int], strides: [Int])Parameters
- data:
The block of data that holds the contents of the shaped array.
- shape:
The shape of the array.
- strides:
The strides of the array.