Contents

init(bytesNoCopy:shape:strides:deallocator:)

Creates a shaped array type from a data pointer with memory strides.

Declaration

init(bytesNoCopy bytes: UnsafeRawPointer, shape: [Int], strides: [Int], deallocator: Data.Deallocator)

Parameters

  • bytes:

    An unsafe raw pointer to the data.

  • shape:

    An integer array. Each element represents the size of the shaped array’s corresponding dimension.

  • strides:

    An integer array. Each element represents the number of memory locations that span the shaped array’s corresponding dimension.

  • deallocator:

    A Deallocator.

See Also

Creating a shaped array type