torchkbnufft.absolute

absolute(val, dim=-1)[source]

Complex absolute value.

Parameters:
  • val (Tensor) – A tensor to have its absolute value computed.

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

Return type:

Tensor

Returns:

The absolute value of val.