package scipy

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file Fft.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
let () = Wrap_utils.init ();;
let __wrap_namespace = Py.import "scipy.fft"

let get_py name = Py.Module.get __wrap_namespace name
                  let dct ?type_ ?n ?axis ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "dct"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let dctn ?type_ ?s ?axes ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "dctn"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("s", Wrap_utils.Option.map s (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("axes", Wrap_utils.Option.map axes (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let dst ?type_ ?n ?axis ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "dst"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
                       |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
                  let dstn ?type_ ?s ?axes ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "dstn"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("s", Wrap_utils.Option.map s (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("axes", Wrap_utils.Option.map axes (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let fft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "fft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let fft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "fft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let fftfreq ?d ~n () =
                     Py.Module.get_function_with_keywords __wrap_namespace "fftfreq"
                       [||]
                       (Wrap_utils.keyword_args [("d", Wrap_utils.Option.map d (function
| `F x -> Py.Float.of_float x
| `I x -> Py.Int.of_int x
| `Bool x -> Py.Bool.of_bool x
| `S x -> Py.String.of_string x
)); ("n", Some(n |> Py.Int.of_int))])
                       |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let fftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "fftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let fftshift ?axes ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "fftshift"
                       [||]
                       (Wrap_utils.keyword_args [("axes", Wrap_utils.Option.map axes (function
| `Shape_tuple x -> Wrap_utils.id x
| `I x -> Py.Int.of_int x
)); ("x", Some(x |> Np.Obj.to_pyobject))])
                       |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let get_workers () =
   Py.Module.get_function_with_keywords __wrap_namespace "get_workers"
     [||]
     []

let hfft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "hfft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let hfft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "hfft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let hfftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "hfftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
                  let idct ?type_ ?n ?axis ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "idct"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let idctn ?type_ ?s ?axes ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "idctn"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("s", Wrap_utils.Option.map s (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("axes", Wrap_utils.Option.map axes (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let idst ?type_ ?n ?axis ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "idst"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let idstn ?type_ ?s ?axes ?norm ?overwrite_x ?workers ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "idstn"
                       [||]
                       (Wrap_utils.keyword_args [("type", Wrap_utils.Option.map type_ (function
| `Three -> Py.Int.of_int 3
| `One -> Py.Int.of_int 1
| `Four -> Py.Int.of_int 4
| `Two -> Py.Int.of_int 2
)); ("s", Wrap_utils.Option.map s (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("axes", Wrap_utils.Option.map axes (function
| `I x -> Py.Int.of_int x
| `Array_like_of_ints x -> Wrap_utils.id x
)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let ifft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ifft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let ifft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ifft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let ifftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ifftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let ifftshift ?axes ~x () =
                     Py.Module.get_function_with_keywords __wrap_namespace "ifftshift"
                       [||]
                       (Wrap_utils.keyword_args [("axes", Wrap_utils.Option.map axes (function
| `Shape_tuple x -> Wrap_utils.id x
| `I x -> Py.Int.of_int x
)); ("x", Some(x |> Np.Obj.to_pyobject))])
                       |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let ihfft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ihfft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let ihfft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ihfft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let ihfftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "ihfftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

let irfft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "irfft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let irfft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "irfft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let irfftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "irfftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
                  let register_backend backend =
                     Py.Module.get_function_with_keywords __wrap_namespace "register_backend"
                       [||]
                       (Wrap_utils.keyword_args [("backend", Some(backend |> (function
| `Scipy -> Py.String.of_string "scipy"
| `PyObject x -> Wrap_utils.id x
)))])

let rfft ?n ?axis ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "rfft"
     [||]
     (Wrap_utils.keyword_args [("n", Wrap_utils.Option.map n Py.Int.of_int); ("axis", Wrap_utils.Option.map axis Py.Int.of_int); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x ))])

let rfft2 ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "rfft2"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])
     |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
                  let rfftfreq ?d ~n () =
                     Py.Module.get_function_with_keywords __wrap_namespace "rfftfreq"
                       [||]
                       (Wrap_utils.keyword_args [("d", Wrap_utils.Option.map d (function
| `F x -> Py.Float.of_float x
| `I x -> Py.Int.of_int x
| `Bool x -> Py.Bool.of_bool x
| `S x -> Py.String.of_string x
)); ("n", Some(n |> Py.Int.of_int))])
                       |> (fun py -> (Np.Obj.of_pyobject py : [`ArrayLike|`Ndarray|`Object] Np.Obj.t))
let rfftn ?s ?axes ?norm ?overwrite_x ?workers ~x () =
   Py.Module.get_function_with_keywords __wrap_namespace "rfftn"
     [||]
     (Wrap_utils.keyword_args [("s", Wrap_utils.Option.map s (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("axes", Wrap_utils.Option.map axes (fun ml -> Py.List.of_list_map Py.Int.of_int ml)); ("norm", Wrap_utils.Option.map norm Py.String.of_string); ("overwrite_x", Wrap_utils.Option.map overwrite_x Py.Bool.of_bool); ("workers", Wrap_utils.Option.map workers Py.Int.of_int); ("x", Some(x |> Np.Obj.to_pyobject))])

                  let set_backend ?coerce ?only ~backend () =
                     Py.Module.get_function_with_keywords __wrap_namespace "set_backend"
                       [||]
                       (Wrap_utils.keyword_args [("coerce", Wrap_utils.Option.map coerce Py.Bool.of_bool); ("only", Wrap_utils.Option.map only Py.Bool.of_bool); ("backend", Some(backend |> (function
| `Scipy -> Py.String.of_string "scipy"
| `PyObject x -> Wrap_utils.id x
)))])

                  let set_global_backend backend =
                     Py.Module.get_function_with_keywords __wrap_namespace "set_global_backend"
                       [||]
                       (Wrap_utils.keyword_args [("backend", Some(backend |> (function
| `Scipy -> Py.String.of_string "scipy"
| `PyObject x -> Wrap_utils.id x
)))])

let set_workers workers =
   Py.Module.get_function_with_keywords __wrap_namespace "set_workers"
     [||]
     (Wrap_utils.keyword_args [("workers", Some(workers |> Py.Int.of_int))])

                  let skip_backend backend =
                     Py.Module.get_function_with_keywords __wrap_namespace "skip_backend"
                       [||]
                       (Wrap_utils.keyword_args [("backend", Some(backend |> (function
| `Scipy -> Py.String.of_string "scipy"
| `PyObject x -> Wrap_utils.id x
)))])