Skip to content

Commit 4cf52e7

Browse files
committed
removed 3pi from docs in matlab wrappers, and chkbnds from matlab tests [note setting opts.chkbnds=0 segaulfts or fails badly]
1 parent 19dc37f commit 4cf52e7

19 files changed

+32
-40
lines changed

matlab/errhandler.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function errhandler(ier)
1414
case 3
1515
error('FINUFFT:spreadinterp:fineGridSmall','FINUFFT spreader fine grid too small compared to kernel width');
1616
case 4
17-
error('FINUFFT:spreadinterp:NUrange','FINUFFT spreader nonuniform point out of range [-3pi,3pi]^d in type 1 or 2.');
17+
error('FINUFFT:spreadinterp:NUrange','[DEPRECATED]');
1818
case 5
1919
error('FINUFFT:spreadinterp:malloc','FINUFFT spreader malloc error');
2020
case 6

matlab/finufft1d1.docsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
% f(k1) = SUM c[j] exp(+/-i k1 x(j)) for -ms/2 <= k1 <= (ms-1)/2
1010
% j=1
1111
% Inputs:
12-
% x locations of nonuniform sources on interval [-3pi,3pi), length nj
12+
% x length-nj vector of real-valued locations of nonuniform sources
1313
% c length-nj complex vector of source strengths. If numel(c)>nj,
1414
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is
1515
% transformed with the same source locations.

matlab/finufft1d1.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
% f(k1) = SUM c[j] exp(+/-i k1 x(j)) for -ms/2 <= k1 <= (ms-1)/2
1010
% j=1
1111
% Inputs:
12-
% x locations of nonuniform sources on interval [-pi, pi) length nj.
13-
% Values outside will be folded.
14-
% Note: folding large values can result in a loss of accuracy.
12+
% x length-nj vector of real-valued locations of nonuniform sources
1513
% c length-nj complex vector of source strengths. If numel(c)>nj,
1614
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is
1715
% transformed with the same source locations.

matlab/finufft1d2.docsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
% where sum is over -ms/2 <= k1 <= (ms-1)/2.
1111
%
1212
% Inputs:
13-
% x location of nonuniform targets on interval [-3pi,3pi), length nj
13+
% x length-nj vector of real-valued locations of nonuniform sources
1414
% f complex Fourier coefficients. If a vector, length sets ms
1515
% (with mode ordering given by opts.modeord). If a matrix, each
1616
% of ntrans columns is transformed with the same nonuniform targets.

matlab/finufft1d2.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
% where sum is over -ms/2 <= k1 <= (ms-1)/2.
1111
%
1212
% Inputs:
13-
% x location of nonuniform targets on interval [-pi, pi), length nj.
14-
% Values outside will be folded.
15-
% Note: folding large values can result in a loss of accuracy.
13+
% x length-nj vector of real-valued locations of nonuniform sources
1614
% f complex Fourier coefficients. If a vector, length sets ms
1715
% (with mode ordering given by opts.modeord). If a matrix, each
1816
% of ntrans columns is transformed with the same nonuniform targets.

matlab/finufft1d3.docsrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
% f[k] = SUM c[j] exp(+-i s[k] x[j]), for k = 1, ..., nk
1010
% j=1
1111
% Inputs:
12-
% x locations of nonuniform sources on R (real line), length-nj vector.
12+
% x length-nj vector of real-valued locations of nonuniform sources
1313
% c length-nj complex vector of source strengths. If numel(c)>nj,
1414
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is
1515
% transformed with the same source and target locations.
1616
ISIGNEPS
17-
% s frequency locations of nonuniform targets on R, length-nk vector.
17+
% s length-nk vector of frequency locations of nonuniform targets
1818
OPTS
1919
% Outputs:
2020
% f length-nk complex vector of values at targets, or, if ntrans>1,

matlab/finufft1d3.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
% f[k] = SUM c[j] exp(+-i s[k] x[j]), for k = 1, ..., nk
1010
% j=1
1111
% Inputs:
12-
% x locations of nonuniform sources on R (real line), length-nj vector.
12+
% x length-nj vector of real-valued locations of nonuniform sources
1313
% c length-nj complex vector of source strengths. If numel(c)>nj,
1414
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is
1515
% transformed with the same source and target locations.
1616
% isign if >=0, uses + sign in exponential, otherwise - sign.
1717
% eps relative precision requested (generally between 1e-15 and 1e-1)
18-
% s frequency locations of nonuniform targets on R, length-nk vector.
18+
% s length-nk vector of frequency locations of nonuniform targets
1919
% opts optional struct with optional fields controlling the following:
2020
% opts.debug: 0 (silent, default), 1 (timing breakdown), 2 (debug info).
2121
% opts.spread_debug: spreader: 0 (no text, default), 1 (some), or 2 (lots)

matlab/finufft2d1.docsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% for -ms/2 <= k1 <= (ms-1)/2, -mt/2 <= k2 <= (mt-1)/2.
1313
%
1414
% Inputs:
15-
% x,y coordinates of nonuniform sources on the square [-3pi,3pi)^2,
15+
% x,y real-valued coordinates of nonuniform sources in the plane,
1616
% each a length-nj vector
1717
% c length-nj complex vector of source strengths. If numel(c)>nj,
1818
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is

matlab/finufft2d1.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
% for -ms/2 <= k1 <= (ms-1)/2, -mt/2 <= k2 <= (mt-1)/2.
1313
%
1414
% Inputs:
15-
% x,y coordinates of nonuniform sources on the square [-pi, pi)^2,
16-
% each a length-nj vector. Values outside will be folded.
17-
% Note: folding large values can result in a loss of accuracy.
15+
% x,y real-valued coordinates of nonuniform sources in the plane,
16+
% each a length-nj vector
1817
% c length-nj complex vector of source strengths. If numel(c)>nj,
1918
% expects a stack of vectors (eg, a nj*ntrans matrix) each of which is
2019
% transformed with the same source locations.

matlab/finufft2d2.docsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
% where sum is over -ms/2 <= k1 <= (ms-1)/2, -mt/2 <= k2 <= (mt-1)/2,
1111
%
1212
% Inputs:
13-
% x,y coordinates of nonuniform targets on the square [-3pi,3pi)^2,
13+
% x,y real-valued coordinates of nonuniform targets in the plane,
1414
% each a vector of length nj
1515
% f complex Fourier coefficient matrix, whose size determines (ms,mt).
1616
% (Mode ordering given by opts.modeord, in each dimension.)

0 commit comments

Comments
 (0)