File: util.rst

package info (click to toggle)
pynfft 1.3.2-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,524 kB
  • sloc: python: 345; makefile: 134; sh: 8
file content (24 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
``pynfft.util`` - Utility functions
===================================

.. automodule:: pynfft.util

Functions used for initialization of :class:`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)

.. autofunction:: pynfft.util.vrand_unit_complex(x)

.. autofunction:: pynfft.util.vrand_shifted_unit_double(x)

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

.. autofunction:: pynfft.util.voronoi_weights_1d(w, x)

.. autofunction:: pynfft.util.voronoi_weights_S2(w, xi)