mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-12 14:25:16 +08:00
Added ability to printf fp16
This commit is contained in:
parent
c7167fee0e
commit
5c13765ee3
@ -510,6 +510,11 @@ static EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC int (isfinite)(const Eigen::half& a
|
|||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
|
ostream& operator << (ostream& os, const Eigen::half& v) {
|
||||||
|
os << static_cast<float>(v);
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
|
||||||
#if __cplusplus > 199711L
|
#if __cplusplus > 199711L
|
||||||
template <>
|
template <>
|
||||||
struct hash<Eigen::half> {
|
struct hash<Eigen::half> {
|
||||||
|
Loading…
Reference in New Issue
Block a user