|
|
|||
File indexing completed on 2026-09-16 09:13:58
0001 #pragma once 0002 0003 #include <half.hpp> 0004 0005 namespace HighFive { 0006 using float16_t = half_float::half; 0007 0008 template <> 0009 inline AtomicType<float16_t>::AtomicType() { 0010 _hid = detail::h5t_copy(H5T_NATIVE_FLOAT); 0011 // Sign position, exponent position, exponent size, mantissa position, mantissa size 0012 detail::h5t_set_fields(_hid, 15, 10, 5, 0, 10); 0013 // Total datatype size (in bytes) 0014 detail::h5t_set_size(_hid, 2); 0015 // Floating point exponent bias 0016 detail::h5t_set_ebias(_hid, 15); 0017 } 0018 0019 } // namespace HighFive
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|