@@ -55,10 +55,11 @@ typedef struct FINUFFT_PLAN_S *FINUFFT_PLAN;
5555FINUFFT_EXPORT void FINUFFT_CDECL FINUFFTIFY (_default_opts)(finufft_opts *o);
5656FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (_makeplan)(
5757 int type, int dim, const FINUFFT_BIGINT *n_modes, int iflag, int n_transf,
58- FINUFFT_FLT tol, FINUFFT_PLAN *plan, finufft_opts *o);
58+ FINUFFT_FLT tol, FINUFFT_PLAN *plan, const finufft_opts *o);
5959FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (_setpts)(
60- FINUFFT_PLAN plan, FINUFFT_BIGINT M, FINUFFT_FLT *xj, FINUFFT_FLT *yj,
61- FINUFFT_FLT *zj, FINUFFT_BIGINT N, FINUFFT_FLT *s, FINUFFT_FLT *t, FINUFFT_FLT *u);
60+ FINUFFT_PLAN plan, FINUFFT_BIGINT M, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
61+ const FINUFFT_FLT *zj, FINUFFT_BIGINT N, const FINUFFT_FLT *s, const FINUFFT_FLT *t,
62+ const FINUFFT_FLT *u);
6263FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (_execute)(
6364 FINUFFT_PLAN plan, FINUFFT_CPX *weights, FINUFFT_CPX *result);
6465FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (_execute_adjoint)(
@@ -69,76 +70,85 @@ FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY(_destroy)(FINUFFT_PLAN plan);
6970// (sources in c_interface.cpp)
7071
7172FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d1)(
72- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps ,
73- FINUFFT_BIGINT ms, FINUFFT_CPX *fk, finufft_opts *opts);
73+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_CPX *cj, int iflag,
74+ FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_CPX *fk, const finufft_opts *opts);
7475FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d1many)(
75- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag,
76- FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_CPX *fk, finufft_opts *opts);
76+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_CPX *cj,
77+ int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_CPX *fk,
78+ const finufft_opts *opts);
7779
7880FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d2)(
79- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps,
80- FINUFFT_BIGINT ms, FINUFFT_CPX *fk, finufft_opts *opts);
81+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps,
82+ FINUFFT_BIGINT ms, const FINUFFT_CPX *fk, const finufft_opts *opts);
8183FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d2many)(
82- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag,
83- FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_CPX *fk, finufft_opts *opts);
84+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, FINUFFT_CPX *cj, int iflag,
85+ FINUFFT_FLT eps, FINUFFT_BIGINT ms, const FINUFFT_CPX *fk, const finufft_opts *opts);
8486FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d3)(
85- FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_CPX *c, int iflag, FINUFFT_FLT eps,
86- FINUFFT_BIGINT nk, FINUFFT_FLT *s, FINUFFT_CPX *f, finufft_opts *opts);
87+ FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_CPX *c, int iflag,
88+ FINUFFT_FLT eps, FINUFFT_BIGINT nk, const FINUFFT_FLT *s, FINUFFT_CPX *f,
89+ const finufft_opts *opts);
8790FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (1d3many)(
88- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_CPX *c, int iflag,
89- FINUFFT_FLT eps, FINUFFT_BIGINT nk, FINUFFT_FLT *s, FINUFFT_CPX *f,
90- finufft_opts *opts);
91+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_CPX *c, int iflag,
92+ FINUFFT_FLT eps, FINUFFT_BIGINT nk, const FINUFFT_FLT *s, FINUFFT_CPX *f,
93+ const finufft_opts *opts);
9194FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d1)(
92- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_CPX *cj, int iflag ,
93- FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_CPX *fk ,
94- finufft_opts *opts);
95+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
96+ const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms ,
97+ FINUFFT_BIGINT mt, FINUFFT_CPX *fk, const finufft_opts *opts);
9598FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d1many)(
96- int ndata, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_CPX *c ,
97- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_CPX *fk ,
98- finufft_opts *opts);
99+ int ndata, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
100+ const FINUFFT_CPX *c, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms,
101+ FINUFFT_BIGINT mt, FINUFFT_CPX *fk, const finufft_opts *opts);
99102FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d2)(
100- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_CPX *cj, int iflag ,
101- FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_CPX *fk ,
102- finufft_opts *opts);
103+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj, FINUFFT_CPX *cj,
104+ int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt,
105+ const FINUFFT_CPX *fk, const finufft_opts *opts);
103106FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d2many)(
104- int ndata, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_CPX *c ,
105- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_CPX *fk ,
106- finufft_opts *opts);
107+ int ndata, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
108+ FINUFFT_CPX *c, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt,
109+ const FINUFFT_CPX *fk, const finufft_opts *opts);
107110FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d3)(
108- FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_FLT *y, FINUFFT_CPX *cj, int iflag ,
109- FINUFFT_FLT eps, FINUFFT_BIGINT nk, FINUFFT_FLT *s, FINUFFT_FLT *t, FINUFFT_CPX *fk ,
110- finufft_opts *opts);
111+ FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_FLT *y, const FINUFFT_CPX *cj,
112+ int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk, const FINUFFT_FLT *s ,
113+ const FINUFFT_FLT *t, FINUFFT_CPX *fk, const finufft_opts *opts);
111114
112115FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (2d3many)(
113- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_FLT *y, FINUFFT_CPX *cj,
114- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk, FINUFFT_FLT *s, FINUFFT_FLT *t,
115- FINUFFT_CPX *fk, finufft_opts *opts);
116+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_FLT *y,
117+ const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk,
118+ const FINUFFT_FLT *s, const FINUFFT_FLT *t, FINUFFT_CPX *fk,
119+ const finufft_opts *opts);
116120
117121FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d1)(
118- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_FLT *zj, FINUFFT_CPX *cj,
119- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_BIGINT mu,
120- FINUFFT_CPX *fk, finufft_opts *opts);
122+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
123+ const FINUFFT_FLT *zj, const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps,
124+ FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_BIGINT mu, FINUFFT_CPX *fk,
125+ const finufft_opts *opts);
121126FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d1many)(
122- int ntransfs, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_FLT *zj,
123- FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt,
124- FINUFFT_BIGINT mu, FINUFFT_CPX *fk, finufft_opts *opts);
127+ int ntransfs, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
128+ const FINUFFT_FLT *zj, const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps,
129+ FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_BIGINT mu, FINUFFT_CPX *fk,
130+ const finufft_opts *opts);
125131
126132FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d2)(
127- FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_FLT *zj, FINUFFT_CPX *cj,
128- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt, FINUFFT_BIGINT mu,
129- FINUFFT_CPX *fk, finufft_opts *opts);
133+ FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
134+ const FINUFFT_FLT *zj, FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms,
135+ FINUFFT_BIGINT mt, FINUFFT_BIGINT mu, const FINUFFT_CPX *fk,
136+ const finufft_opts *opts);
130137FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d2many)(
131- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *xj, FINUFFT_FLT *yj, FINUFFT_FLT *zj,
132- FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms, FINUFFT_BIGINT mt,
133- FINUFFT_BIGINT mu, FINUFFT_CPX *fk, finufft_opts *opts);
138+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *xj, const FINUFFT_FLT *yj,
139+ const FINUFFT_FLT *zj, FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT ms,
140+ FINUFFT_BIGINT mt, FINUFFT_BIGINT mu, const FINUFFT_CPX *fk,
141+ const finufft_opts *opts);
134142FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d3)(
135- FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_FLT *y, FINUFFT_FLT *z, FINUFFT_CPX *cj,
136- int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk, FINUFFT_FLT *s, FINUFFT_FLT *t,
137- FINUFFT_FLT *u, FINUFFT_CPX *fk, finufft_opts *opts);
143+ FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_FLT *y, const FINUFFT_FLT *z,
144+ const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk,
145+ const FINUFFT_FLT *s, const FINUFFT_FLT *t, const FINUFFT_FLT *u, FINUFFT_CPX *fk,
146+ const finufft_opts *opts);
138147FINUFFT_EXPORT int FINUFFT_CDECL FINUFFTIFY (3d3many)(
139- int ntransf, FINUFFT_BIGINT nj, FINUFFT_FLT *x, FINUFFT_FLT *y, FINUFFT_FLT *z,
140- FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps, FINUFFT_BIGINT nk, FINUFFT_FLT *s,
141- FINUFFT_FLT *t, FINUFFT_FLT *u, FINUFFT_CPX *fk, finufft_opts *opts);
148+ int ntransf, FINUFFT_BIGINT nj, const FINUFFT_FLT *x, const FINUFFT_FLT *y,
149+ const FINUFFT_FLT *z, const FINUFFT_CPX *cj, int iflag, FINUFFT_FLT eps,
150+ FINUFFT_BIGINT nk, const FINUFFT_FLT *s, const FINUFFT_FLT *t, const FINUFFT_FLT *u,
151+ FINUFFT_CPX *fk, const finufft_opts *opts);
142152
143153#ifdef __cplusplus
144154}
0 commit comments