mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Force the inlining of the << operator on half floats
This commit is contained in:
parent
5379d2b594
commit
7718749fee
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user