pynfft.util - Utility functionsΒΆ

Functions used for initialization of pynfft.NFFT attributes in test scripts. For instance:

>>> from pynfft.util import vrand_unit_complex, vrand_shifted_unit_double
>>> x = np.empty(20, dtype=np.float64)
>>> vrand_shifted_unit_double(x)
>>> f_hat = np.empty(16, dtype=np.complex128)
>>> vrand_unit_complex(f_hat)

Functions used for computing the density compensation weights necessary for the iterative solver and adjoint NFFT.