mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +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 {
|
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);
|
os << static_cast<float>(v);
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user