init(data:shape:strides:)
Creates a shaped array with defined data, shape, and strides.
Declaration
init(data: Data, shape: [Int], strides: [Int])Parameters
- data:
A block of data that initializes the array.
- shape:
The shape of the array.
- strides:
The strides of the array.