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