mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 07:44:10 +08:00
Fix bfloat16 round on gcc 4.8
This commit is contained in:
parent
5636f80d11
commit
65e400896b
@ -407,7 +407,7 @@ inline NewType cast(const OldType& x)
|
|||||||
{
|
{
|
||||||
EIGEN_STATIC_ASSERT((!NumTraits<Scalar>::IsComplex), NUMERIC_TYPE_MUST_BE_REAL)
|
EIGEN_STATIC_ASSERT((!NumTraits<Scalar>::IsComplex), NUMERIC_TYPE_MUST_BE_REAL)
|
||||||
EIGEN_USING_STD_MATH(round);
|
EIGEN_USING_STD_MATH(round);
|
||||||
return round(x);
|
return Scalar(round(x));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user