Contents

complexConstant(realPart:imaginaryPart:)

Creates a complex constant op with the MPSDataTypeComplexFloat32 data type and returns the result tensor.

Declaration

func complexConstant(realPart: Double, imaginaryPart: Double) -> MPSGraphTensor

Parameters

  • realPart:

    The real part of the complex scalar to fill the entire tensor values with.

  • imaginaryPart:

    The imaginary part of the complex scalar to fill the entire tensor values with.

Return Value

A valid MPSGraphTensor object.