![]() |
HDF5 Last Updated on 2026-03-22
The HDF5 Field Guide
|
Alternative (non-IEEE) floating point types.
| Datatype | Description |
|---|---|
| H5T_FLOAT_BFLOAT16BE | 16-bit big-endian bfloat16 floating point |
| H5T_FLOAT_BFLOAT16LE | 16-bit little-endian bfloat16 floating point |
| H5T_FLOAT_F8E4M3 | 8-bit FP8 E4M3 (4 exponent bits, 3 mantissa bits) floating point |
| H5T_FLOAT_F8E5M2 | 8-bit FP8 E5M2 (5 exponent bits, 2 mantissa bits) floating point |
| H5T_FLOAT_F6E2M3 | 6-bit FP6 E2M3 (2 exponent bits, 3 mantissa bits) floating point |
| H5T_FLOAT_F6E3M2 | 6-bit FP6 E3M2 (3 exponent bits, 2 mantissa bits) floating point |
| H5T_FLOAT_F4E2M1 | 4-bit FP4 E2M1 (2 exponent bits, 1 mantissa bit) floating point |
Macros | |
| #define | H5T_FLOAT_BFLOAT16BE (H5OPEN H5T_FLOAT_BFLOAT16BE_g) |
| #define | H5T_FLOAT_BFLOAT16LE (H5OPEN H5T_FLOAT_BFLOAT16LE_g) |
| #define | H5T_FLOAT_F4E2M1 (H5OPEN H5T_FLOAT_F4E2M1_g) |
| #define | H5T_FLOAT_F6E2M3 (H5OPEN H5T_FLOAT_F6E2M3_g) |
| #define | H5T_FLOAT_F6E3M2 (H5OPEN H5T_FLOAT_F6E3M2_g) |
| #define | H5T_FLOAT_F8E4M3 (H5OPEN H5T_FLOAT_F8E4M3_g) |
| #define | H5T_FLOAT_F8E5M2 (H5OPEN H5T_FLOAT_F8E5M2_g) |
| #define H5T_FLOAT_BFLOAT16BE (H5OPEN H5T_FLOAT_BFLOAT16BE_g) |
16-bit big-endian bfloat16 floating-point numbers
| #define H5T_FLOAT_BFLOAT16LE (H5OPEN H5T_FLOAT_BFLOAT16LE_g) |
16-bit little-endian bfloat16 floating-point numbers
| #define H5T_FLOAT_F4E2M1 (H5OPEN H5T_FLOAT_F4E2M1_g) |
4-bit FP4 E2M1 (2 exponent bits, 1 mantissa bit) floating-point numbers
| #define H5T_FLOAT_F6E2M3 (H5OPEN H5T_FLOAT_F6E2M3_g) |
6-bit FP6 E2M3 (2 exponent bits, 3 mantissa bits) floating-point numbers
| #define H5T_FLOAT_F6E3M2 (H5OPEN H5T_FLOAT_F6E3M2_g) |
6-bit FP6 E3M2 (3 exponent bits, 2 mantissa bits) floating-point numbers
| #define H5T_FLOAT_F8E4M3 (H5OPEN H5T_FLOAT_F8E4M3_g) |
8-bit FP8 E4M3 (4 exponent bits, 3 mantissa bits) floating-point numbers
| #define H5T_FLOAT_F8E5M2 (H5OPEN H5T_FLOAT_F8E5M2_g) |
8-bit FP8 E5M2 (5 exponent bits, 2 mantissa bits) floating-point numbers