torchkbnufft.imag_exp

imag_exp(val, dim=-1, return_complex=True)[source]

Imaginary exponential.

Parameters
  • val (Tensor) – A tensor to be exponentiated.

  • dim (int) – An integer indicating the complex dimension of the output (for real outputs only).

Return type

Tensor

Returns

val2 = exp(i*val), where i is sqrt(-1).