Force the inlining of the << operator on half floats

This commit is contained in:
Benoit Steiner 2016-04-14 11:51:54 -07:00
parent 5379d2b594
commit 7718749fee

View File

@ -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<float>(v);
return os;
}