From 4077843d1321b4ae125577bc6543fc646b304721 Mon Sep 17 00:00:00 2001 From: kradchen Date: Fri, 9 Jun 2023 14:31:47 +0800 Subject: [PATCH] Update ifft add arg n --- src/Function2D.cpp | 38 +++++++++++++++++++++++++++++--------- src/Function2D.h | 2 +- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/Function2D.cpp b/src/Function2D.cpp index 06ca233..d522cb9 100644 --- a/src/Function2D.cpp +++ b/src/Function2D.cpp @@ -757,19 +757,39 @@ Matrix Aurora::fft(const Matrix &aMatrix, long aFFTSize) { return Matrix(); } -Matrix Aurora::ifft(const Matrix &aMatrix) { +Matrix Aurora::ifft(const Matrix &aMatrix, long aFFTSize ) { if (!aMatrix.isComplex()){ std::cerr<<"ifft input must be complex value"<0)?aFFTSize:aMatrix.getDimSize(0); + //实际需要copy赋值的非0值 + MKL_LONG needCopySize = (rowSize