Re: [eigen] fix double-promotion in 3.3 Core/SpecialFunctions.h

[ Thread Index | Date Index | More Archives ]

std::pow(float, int) actually gets promoted to std::pow(double, double).

Note that this is correct as of c++11:

This is especially bad for std::pow(x, 2). Inside Eigen we can use

Does pow(x, 2.0) fix it? If not, pow(x, float(2)) at least should...

Mail converted by MHonArc 2.6.19+