diff --git a/CMakeLists.txt b/CMakeLists.txt index 901f9e79..3468192d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,7 @@ endif() # Check if PIP support fftw3 for PIFFT using in math module if(FFTW) message(STATUS "Building with fftw3 support") +# find_library(${fftw3} ${LIB_}) add_definitions(-DPIP_FFTW) if(WIN32) add_definitions(-DPIP_FFTW_THREADSAFE) diff --git a/src/math/pimathcomplex.h b/src/math/pimathcomplex.h index 085d47c6..e6370711 100644 --- a/src/math/pimathcomplex.h +++ b/src/math/pimathcomplex.h @@ -11,15 +11,17 @@ using std::complex; typedef complex complexi; typedef complex complexf; -typedef complex complexd; typedef complex complexld; +#ifndef QPIEVALUATOR_COMPLEX +typedef complex complexd; -const complexld complexld_i(0., 1.); -const complexld complexld_0(0.); -const complexld complexld_1(1.); const complexd complexd_i(0., 1.); const complexd complexd_0(0.); const complexd complexd_1(1.); +#endif +const complexld complexld_i(0., 1.); +const complexld complexld_0(0.); +const complexld complexld_1(1.); __PICONTAINERS_SIMPLE_TYPE__(complexi) __PICONTAINERS_SIMPLE_TYPE__(complexf)