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
- space
DiscretizedSpace
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. ForFalse
, use the full frequency space. This option can only be used ifspace
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 asaxes
if supplied. Note that this must be set toTrue
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 ofspace
is used, whereq = inf
forp = 1
and vice versa.- dtypeoptional
Complex data type of the created space. By default, the complex counterpart of
space.dtype
is used.
- space
- Returns
- rspace
DiscretizedSpace
Reciprocal of the input
space
. Ifhalfcomplex=True
, the upper end of the domain (where the half space ends) is chosen to coincide with the grid node.
- rspace