mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Relaxed the condition used to gate the fft code.
This commit is contained in:
parent
0ea7ab4f62
commit
3da495e6b9
@ -12,7 +12,7 @@
|
||||
|
||||
// This code requires the ability to initialize arrays of constant
|
||||
// values directly inside a class.
|
||||
#ifdef EIGEN_HAS_CONSTEXPR
|
||||
#if __cplusplus >= 201103L || EIGEN_COMP_MSVC >= 1900
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
@ -565,7 +565,7 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
|
||||
|
||||
// This will support a maximum FFT size of 2^32 for each dimension
|
||||
// m_sin_PI_div_n_LUT[i] = (-2) * std::sin(M_PI / std::pow(2,i)) ^ 2;
|
||||
RealScalar m_sin_PI_div_n_LUT[32] = {
|
||||
const RealScalar m_sin_PI_div_n_LUT[32] = {
|
||||
RealScalar(0.0),
|
||||
RealScalar(-2),
|
||||
RealScalar(-0.999999999999999),
|
||||
@ -601,7 +601,7 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
|
||||
};
|
||||
|
||||
// m_minus_sin_2_PI_div_n_LUT[i] = -std::sin(2 * M_PI / std::pow(2,i));
|
||||
RealScalar m_minus_sin_2_PI_div_n_LUT[32] = {
|
||||
const RealScalar m_minus_sin_2_PI_div_n_LUT[32] = {
|
||||
RealScalar(0.0),
|
||||
RealScalar(0.0),
|
||||
RealScalar(-1.00000000000000e+00),
|
||||
|
Loading…
Reference in New Issue
Block a user