186 | | yr = hlsvd_wrapper.new_float_array(2048) |
187 | | yi = hlsvd_wrapper.new_float_array(2048) |
188 | | ndata = hlsvd_wrapper.new_ndata() |
189 | | ndp = hlsvd_wrapper.new_ndp() |
190 | | tstep = hlsvd_wrapper.new_tstep() |
191 | | m = hlsvd_wrapper.new_m() |
192 | | nssv = hlsvd_wrapper.new_nssv() |
193 | | nit = hlsvd_wrapper.new_nit() |
194 | | rootr = hlsvd_wrapper.new_double_array(50) |
195 | | rooti = hlsvd_wrapper.new_double_array(50) |
196 | | fre = hlsvd_wrapper.new_float_array(50) |
197 | | dam = hlsvd_wrapper.new_float_array(50) |
198 | | amp = hlsvd_wrapper.new_float_array(50) |
199 | | phase = hlsvd_wrapper.new_float_array(50) |
200 | | sv = hlsvd_wrapper.new_double_array(1024) |
201 | | snoise = hlsvd_wrapper.new_snoise() |
202 | | rms = hlsvd_wrapper.new_rms() |
203 | | ndiv = hlsvd_wrapper.new_ndiv() |
204 | | nitf = hlsvd_wrapper.new_nitf() |
| 186 | yr = hlsvd_wrapper.new_float_array(2048) |
| 187 | yi = hlsvd_wrapper.new_float_array(2048) |
| 188 | ndata = hlsvd_wrapper.new_ndata() |
| 189 | ndp = hlsvd_wrapper.new_ndp() |
| 190 | tstep = hlsvd_wrapper.new_tstep() |
| 191 | m = hlsvd_wrapper.new_m() |
| 192 | nssv = hlsvd_wrapper.new_nssv() |
| 193 | nit = hlsvd_wrapper.new_nit() |
| 194 | rootr = hlsvd_wrapper.new_double_array(50) |
| 195 | rooti = hlsvd_wrapper.new_double_array(50) |
| 196 | fre = hlsvd_wrapper.new_float_array(50) |
| 197 | dam = hlsvd_wrapper.new_float_array(50) |
| 198 | amp = hlsvd_wrapper.new_float_array(50) |
| 199 | phase = hlsvd_wrapper.new_float_array(50) |
| 200 | sv = hlsvd_wrapper.new_double_array(1024) |
| 201 | snoise = hlsvd_wrapper.new_snoise() |
| 202 | rms = hlsvd_wrapper.new_rms() |
| 203 | ndiv = hlsvd_wrapper.new_ndiv() |
| 204 | nitf = hlsvd_wrapper.new_nitf() |
211 | | hlsvd_wrapper.hlsvd(yr, yi, ndata, ndp, tstep, m, nssv, |
212 | | rootr, rooti, fre, dam, amp, phase, sv, snoise, |
213 | | rms, ndiv, nit, nitf) |
214 | | }}} |
215 | | |
| 211 | hlsvd_wrapper.hlsvd(yr, yi, ndata, ndp, tstep, m, nssv, |
| 212 | rootr, rooti, fre, dam, amp, phase, sv, snoise, |
| 213 | rms, ndiv, nit, nitf) |
| 214 | }}} |
| 215 | |
| 216 | {{{ |
| 217 | #!rst |
259 | | :: |
260 | | |
261 | | InputFloatArrayType = ctypes.c_float * 2048 |
262 | | OutputDoubleArrayType = ctypes.c_double * 50 |
263 | | OutputFloatArrayType = ctypes.c_float * 50 |
264 | | |
265 | | yr = InputFloatArrayType() |
266 | | yi = InputFloatArrayType() |
267 | | |
268 | | ndpmax = ctypes.c_long(2048) |
269 | | ndp = ctypes.c_long(1024) |
270 | | tstep = ctypes.c_float(.256) |
271 | | m = ctypes.c_long(380) |
272 | | nssv = ctypes.c_long(25) |
273 | | nit = ctypes.c_long(500) |
274 | | |
275 | | rootr = OutputDoubleArrayType() |
276 | | rooti = OutputDoubleArrayType() |
277 | | fre = OutputFloatArrayType() |
278 | | dam = OutputFloatArrayType() |
279 | | amp = OutputFloatArrayType() |
280 | | phase = OutputFloatArrayType() |
281 | | sv = OutputDoubleArrayType() |
282 | | snoise = ctypes.c_double() |
283 | | rms = ctypes.c_double() |
284 | | ndiv = ctypes.c_long() |
285 | | nitf = ctypes.c_long() |
286 | | |
287 | | |
288 | | lib.hlsvd(yr, yi, ctypes.byref(ndpmax), ctypes.byref(ndp), |
289 | | ctypes.byref(tstep), ctypes.byref(m), ctypes.byref(nssv), |
290 | | ctypes.pointer(rootr), ctypes.pointer(rooti), |
291 | | ctypes.pointer(fre), ctypes.pointer(dam), |
292 | | ctypes.pointer(amp), ctypes.pointer(phase), |
293 | | ctypes.pointer(sv), ctypes.pointer(snoise), |
294 | | ctypes.pointer(rms), ctypes.pointer(ndiv), |
295 | | ctypes.byref(nit), ctypes.pointer(nitf) |
296 | | ) |
297 | | |
| 265 | |
| 266 | {{{ |
| 267 | #!python |
| 268 | InputFloatArrayType = ctypes.c_float * 2048 |
| 269 | OutputDoubleArrayType = ctypes.c_double * 50 |
| 270 | OutputFloatArrayType = ctypes.c_float * 50 |
| 271 | |
| 272 | yr = InputFloatArrayType() |
| 273 | yi = InputFloatArrayType() |
| 274 | |
| 275 | ndpmax = ctypes.c_long(2048) |
| 276 | ndp = ctypes.c_long(1024) |
| 277 | tstep = ctypes.c_float(.256) |
| 278 | m = ctypes.c_long(380) |
| 279 | nssv = ctypes.c_long(25) |
| 280 | nit = ctypes.c_long(500) |
| 281 | |
| 282 | rootr = OutputDoubleArrayType() |
| 283 | rooti = OutputDoubleArrayType() |
| 284 | fre = OutputFloatArrayType() |
| 285 | dam = OutputFloatArrayType() |
| 286 | amp = OutputFloatArrayType() |
| 287 | phase = OutputFloatArrayType() |
| 288 | sv = OutputDoubleArrayType() |
| 289 | snoise = ctypes.c_double() |
| 290 | rms = ctypes.c_double() |
| 291 | ndiv = ctypes.c_long() |
| 292 | nitf = ctypes.c_long() |
| 293 | |
| 294 | |
| 295 | lib.hlsvd(yr, yi, ctypes.byref(ndpmax), ctypes.byref(ndp), |
| 296 | ctypes.byref(tstep), ctypes.byref(m), ctypes.byref(nssv), |
| 297 | ctypes.pointer(rootr), ctypes.pointer(rooti), |
| 298 | ctypes.pointer(fre), ctypes.pointer(dam), |
| 299 | ctypes.pointer(amp), ctypes.pointer(phase), |
| 300 | ctypes.pointer(sv), ctypes.pointer(snoise), |
| 301 | ctypes.pointer(rms), ctypes.pointer(ndiv), |
| 302 | ctypes.byref(nit), ctypes.pointer(nitf) |
| 303 | ) |
| 304 | }}} |