init
TypeScriptstatic init(device: SDKHandle): MPSNDArrayIdentitySwift declarationinit(device: any MTLDevice)class · iOS 18.0+ · SDK 27.1
class MPSNDArrayIdentitystatic init(device: SDKHandle): MPSNDArrayIdentitySwift declarationinit(device: any MTLDevice)reshapeWithSourceArrayDimensionCountDimensionSizesDestinationArray(cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, numberOfDimensions: number, dimensionSizes: SDKHandle, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | nullSwift declarationfunc reshape(with cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, dimensionCount numberOfDimensions: Int, dimensionSizes: UnsafeMutablePointer<Int>, destinationArray: MPSNDArray?) -> MPSNDArray?reshapeWithSourceArrayShapeDestinationArray(cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | nullSwift declarationfunc reshape(with cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, shape: [NSNumber], destinationArray: MPSNDArray?) -> MPSNDArray?reshapeWithCommandBufferSourceArrayDimensionCountDimensionSizesDestinationArray(encoder: (SDKHandle) | null, cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, numberOfDimensions: number, dimensionSizes: SDKHandle, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | nullSwift declarationfunc reshape(with encoder: (any MTLComputeCommandEncoder)?, commandBuffer cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, dimensionCount numberOfDimensions: Int, dimensionSizes: UnsafeMutablePointer<Int>, destinationArray: MPSNDArray?) -> MPSNDArray?reshapeWithCommandBufferSourceArrayShapeDestinationArray(encoder: (SDKHandle) | null, cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | nullSwift declarationfunc reshape(with encoder: (any MTLComputeCommandEncoder)?, commandBuffer cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, shape: [NSNumber], destinationArray: MPSNDArray?) -> MPSNDArray?reshapeWithSourceArrayShape(sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>): (MPSNDArray) | nullSwift declarationfunc reshape(withSourceArray sourceArray: MPSNDArray, shape: [NSNumber]) -> MPSNDArray?1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSNDArrayIdentity.init()
inherited init: cannot prove legal (class declares 1 custom initializer)