Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add complex guard to ffc
  • Loading branch information
v923z committed Apr 21, 2021
commit 0b8bbe6a6096556ec6d263f950af276da2587966
3 changes: 3 additions & 0 deletions code/numpy/fft/fft.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "py/obj.h"
#include "py/objarray.h"

#include "../carray/carray_tools.h"
#include "fft.h"

//| """Frequency-domain functions"""
Expand All @@ -39,6 +40,7 @@
//| ...
//|
static mp_obj_t fft_fft(size_t n_args, const mp_obj_t *args) {
NOT_IMPLEMENTED_FOR_COMPLEX()
if(n_args == 2) {
return fft_fft_ifft_spectrogram(n_args, args[0], args[1], FFT_FFT);
} else {
Expand All @@ -59,6 +61,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(fft_fft_obj, 1, 2, fft_fft);
//|

static mp_obj_t fft_ifft(size_t n_args, const mp_obj_t *args) {
NOT_IMPLEMENTED_FOR_COMPLEX()
if(n_args == 2) {
return fft_fft_ifft_spectrogram(n_args, args[0], args[1], FFT_IFFT);
} else {
Expand Down