mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Inline the << operator on half floats
This commit is contained in:
parent
5912ad877c
commit
5379d2b594
@ -510,7 +510,7 @@ static EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC int (isfinite)(const Eigen::half& a
|
||||
|
||||
namespace std {
|
||||
|
||||
ostream& operator << (ostream& os, const Eigen::half& v) {
|
||||
EIGEN_STRONG_INLINE ostream& operator << (ostream& os, const Eigen::half& v) {
|
||||
os << static_cast<float>(v);
|
||||
return os;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user