Contents

init(_:)

Creates a new MLShapedArraySlice using a MLMultiArray as a backing storage.

Declaration

init(_ multiArray: MLMultiArray)

Parameters

  • multiArray:

    The MLMultiArray object.

Discussion

Use this initializer to access MLMultiArray through MLShapedArray interface.

Mutating operations trigger copy-on-write. Non-mutating operations access the MLMultiArray’s backing storage including the pixel buffer.

See Also

Creating a shaped array slice from another type