summaryrefslogtreecommitdiff
path: root/gcell/src/lib/wrapper/gcp_fft_1d_r2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcell/src/lib/wrapper/gcp_fft_1d_r2.cc')
-rw-r--r--gcell/src/lib/wrapper/gcp_fft_1d_r2.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/gcell/src/lib/wrapper/gcp_fft_1d_r2.cc b/gcell/src/lib/wrapper/gcp_fft_1d_r2.cc
index d639dad45..f92ee42c8 100644
--- a/gcell/src/lib/wrapper/gcp_fft_1d_r2.cc
+++ b/gcell/src/lib/wrapper/gcp_fft_1d_r2.cc
@@ -89,7 +89,7 @@ gcp_fft_1d_r2_submit(gc_job_manager_sptr mgr,
}
void
-gcp_fft_1d_r2_forward_twiddle(unsigned int log2_fft_length, std::complex<float> *W)
+gcp_fft_1d_r2_twiddle(unsigned int log2_fft_length, std::complex<float> *W)
{
unsigned int n = 1 << log2_fft_length;
@@ -100,17 +100,3 @@ gcp_fft_1d_r2_forward_twiddle(unsigned int log2_fft_length, std::complex<float>
W[n/4 - i].imag() = -W[i].real();
}
}
-
-
-void
-gcp_fft_1d_r2_reverse_twiddle(unsigned int log2_fft_length, std::complex<float> *W)
-{
- // FIXME this is wrong/insufficient. inverse is still incorrect
-
- // reverse factors are the conjugate of the forward factors
- gcp_fft_1d_r2_forward_twiddle(log2_fft_length, W);
-
- unsigned int n = 1 << log2_fft_length;
- for (unsigned i=0; i < n/4; i++)
- W[i] = conj(W[i]);
-}