mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fix double-promotion warnings
(cherry picked from commit c22c103e932e511e96645186831363585a44b7a3)
This commit is contained in:
parent
4bfcee47b9
commit
4fb3459a23
@ -1369,7 +1369,7 @@ struct fast_accurate_exp2<double> {
|
||||
const Packet p0 = pset1<Packet>(0.240226506959101332);
|
||||
const Packet C_hi = pset1<Packet>(0.693147180559945286);
|
||||
const Packet C_lo = pset1<Packet>(4.81927865669806721e-17);
|
||||
const Packet one = pset1<Packet>(1.0f);
|
||||
const Packet one = pset1<Packet>(1.0);
|
||||
|
||||
// Evaluate P(x) in working precision.
|
||||
// We evaluate even and odd parts of the polynomial separately
|
||||
|
@ -31,7 +31,7 @@ struct kiss_cpx_fft
|
||||
using numext::cos;
|
||||
m_inverse = inverse;
|
||||
m_twiddles.resize(nfft);
|
||||
double phinc = 0.25 * EIGEN_PI / nfft;
|
||||
double phinc = 0.25 * double(EIGEN_PI) / nfft;
|
||||
Scalar flip = inverse ? Scalar(1) : Scalar(-1);
|
||||
m_twiddles[0] = Complex(Scalar(1), Scalar(0));
|
||||
if ((nfft&1)==0)
|
||||
|
Loading…
Reference in New Issue
Block a user