- Graph.complex_value(x, y, *, name=None)
Create element-wise complex values from real numbers, np.ndarrays, Tensors, Pwcs, or Stfs, that is, the real and imaginary parts.
Considering numbers and np.ndarrays as Tensors, if the two objects are of the same type, so is the returned object. If the objects have different types, Pwcs and Stfs can operate with a tensor (returning a Pwc or Stf, respectively).
This operation supports broadcasting between the different objects. When operating a tensor-like object with an Stf or a Pwc, the time dimension of the latter is ignored.
The element-wise complex number \(x+iy\).
- Return type: