Contents

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.

See Also

Creating a shaped array slice with data