mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Fix compilation with gcc
This commit is contained in:
parent
ddf64babde
commit
f50bb1e6f3
@ -81,7 +81,7 @@ template <typename Scalar, int N>
|
|||||||
struct polevl {
|
struct polevl {
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||||
static Scalar run(const Scalar x, const Scalar coef[]) {
|
static Scalar run(const Scalar x, const Scalar coef[]) {
|
||||||
EIGEN_STATIC_ASSERT(N > 0, YOU_MADE_A_PROGRAMMING_MISTAKE);
|
EIGEN_STATIC_ASSERT((N > 0), YOU_MADE_A_PROGRAMMING_MISTAKE);
|
||||||
|
|
||||||
return polevl<Scalar, N - 1>::run(x, coef) * x + coef[N];
|
return polevl<Scalar, N - 1>::run(x, coef) * x + coef[N];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user