Skip to content

Commit 0bbc135

Browse files
committed
fix pi-range stuff for c_gpu.rst
1 parent 9805f75 commit 0bbc135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/c_gpu.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Finally, we'll need some variables to compute the NUDFT at some arbitrary point
6565
int idx;
6666
float _Complex f0;
6767
68-
Now the actual work can begin. First, we allocate the host (CPU) arrays and fill the ``x`` and ``c`` arrays with appropriate values (``f`` will hold the output of the cuFINUFFT call). The frequencies in ``x`` must be in the interval :math:`[-\pi, \pi]` while the coefficients ``c`` can be any value. Here we draw the frequencies and coefficients from the uniform distributions on :math:`[-\pi, \pi]` and :math:`[-1, 1]^2` respectively.
68+
Now the actual work can begin. First, we allocate the host (CPU) arrays and fill the ``x`` and ``c`` arrays with appropriate values (``f`` will hold the output of the cuFINUFFT call). The frequencies in ``x`` are interpreted with periodicity :math:`2\pi`, while the coefficients ``c`` can be any value. Here we draw the frequencies and coefficients from the uniform distributions on :math:`[-\pi, \pi]` and :math:`[-1, 1]^2` respectively.
6969

7070
.. code-block:: c
7171
@@ -218,8 +218,8 @@ For type 1 these points are "sources", but for type 2, "targets".
218218
x, y, z length-M GPU arrays of x (in 1D), x, y (in 2D), or x, y, z (in 3D) coordinates of
219219
nonuniform points. In each dimension they refer to a periodic domain
220220
[-pi,pi), but values outside will be folded back correctly
221-
into this domain. Beyond that, they will not, and may result in crash.
222-
In dimension 2, z is ignored.
221+
into this domain. In dimension 1, y and z are ignored. In dimension 2, z is
222+
ignored.
223223
N, s, t, u (unused for types 1 or 2 transforms; reserved for future type 3)
224224
225225
Input/Output:

0 commit comments

Comments
 (0)