complex_decompose#

hypercoil.functional.utils.complex_decompose(complex: Tensor) Tuple[Tensor, Tensor][source]#

Decompose a complex-valued tensor into amplitude and phase components.

Dimension:

Each output is of the same shape as the input.

Parameters:
complexTensor

Complex-valued tensor.

Returns:
amplTensor

Amplitude of each entry in the input tensor.

phaseTensor

Phase of each entry in the input tensor, in radians.