diff options
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/arch/Default/BFloat16.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index 561304f80..abf2ac933 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -117,10 +117,10 @@ struct bfloat16 : public bfloat16_impl::bfloat16_base { EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(unsigned long long) const { return static_cast<unsigned long long>(bfloat16_to_float(*this)); } - EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(float) const { + EIGEN_DEVICE_FUNC operator float() const { return bfloat16_impl::bfloat16_to_float(*this); } - EIGEN_DEVICE_FUNC EIGEN_EXPLICIT_CAST(double) const { + EIGEN_DEVICE_FUNC operator double() const { return static_cast<double>(bfloat16_impl::bfloat16_to_float(*this)); } template<typename RealScalar> |