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