From 7718749fee835095f0671fa6ce5d257609f8e56b Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 14 Apr 2016 11:51:54 -0700 Subject: [PATCH] Force the inlining of the << operator on half floats --- Eigen/src/Core/arch/CUDA/Half.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h index bdf97dcd69..9ecc4fd880 100644 --- a/Eigen/src/Core/arch/CUDA/Half.h +++ b/Eigen/src/Core/arch/CUDA/Half.h @@ -510,7 +510,7 @@ static EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC int (isfinite)(const Eigen::half& a namespace std { -EIGEN_STRONG_INLINE ostream& operator << (ostream& os, const Eigen::half& v) { +EIGEN_ALWAYS_INLINE ostream& operator << (ostream& os, const Eigen::half& v) { os << static_cast(v); return os; }