Contents

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.

See Also

Creating a shaped array from data