mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Using numext::pow instead of std::pow in poly_eval function.
This commit is contained in:
parent
b1eca55328
commit
a8f2c6eec7
@ -56,7 +56,7 @@ T poly_eval( const Polynomials& poly, const T& x )
|
||||
for( DenseIndex i=1; i<poly.size(); ++i ){
|
||||
val = val*inv_x + poly[i]; }
|
||||
|
||||
return std::pow(x,(T)(poly.size()-1)) * val;
|
||||
return numext::pow(x,(T)(poly.size()-1)) * val;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user