reciprocal_space

odl.trafos.util.ft_utils.reciprocal_space(space, axes=None, halfcomplex=False, shift=True, **kwargs)[source]

Return the range of the Fourier transform on space.

Parameters:
spaceDiscretizedSpace

Real space whose reciprocal is calculated. It must be uniformly discretized.

axessequence of ints, optional

Dimensions along which the Fourier transform is taken. Default: all axes

halfcomplexbool, optional

If True, take only the negative frequency part along the last axis for. For False, use the full frequency space. This option can only be used if space is a space of real-valued functions.

shiftbool or sequence of bools, optional

If True, the reciprocal grid is shifted by half a stride in the negative direction. With a boolean sequence, this option is applied separately to each axis. If a sequence is provided, it must have the same length as axes if supplied. Note that this must be set to True in the halved axis in half-complex transforms. Default: True

implstring, optional

Implementation back-end for the created space. Default: 'numpy'

exponentfloat, optional

Create a space with this exponent. By default, the conjugate exponent q = p / (p - 1) of the exponent of space is used, where q = inf for p = 1 and vice versa.

dtypeoptional

Complex data type of the created space. By default, the complex counterpart of space.dtype is used.

Returns:
rspaceDiscretizedSpace

Reciprocal of the input space. If halfcomplex=True, the upper end of the domain (where the half space ends) is chosen to coincide with the grid node.