DENSE-BINARY32-VECTOR stores IEEE 754 binary32 interchange bit patterns back to back without a descriptor.
Layout
- Code: Value
VALUE-ISSUER-2WORD(0x09DL), Issuer0x00000002ADHOC, codec number0x00000508. Family NUMERIC.
TAG WORD 0000 1001 1101 LLLL Codec 0x09DL
[Length ext. TAG] when the total is 15 WORD or more
Issuer 2 WORD 0x00000002 (ADHOC)
Codec number 2 WORD 0x00000508
Payload: [binary32 bits 1st: 2 WORD] ... [binary32 bits Nth: 2 WORD]
Interpretation rules
- Each run of 2 consecutive WORD is one element, read from the most significant WORD first. The bit pattern, including NaN payload and signed zero, is preserved as is.
- The number of elements is 1/2 of the number of Payload WORD, and there is no ABI padding.
Validity
- The Payload must be at least 2 WORD and an integer multiple of 2 WORD. This format has no descriptor and does not allow an empty vector.
Standards basis and formal status
- The interchange format of binary32 elements follows IEEE 754, Standard for Floating-Point Arithmetic.
- The descriptor-less 1-dimensional contiguous run and the placement in GEUL TAG/Length and 16-bit big-endian WORD are specific to GEUL. DLPack
DLDataTypeassumes native endianness, so this Payload is not the wire serialization of DLPack, Arrow, or ONNX.
Length
- The total is the number of WORD obtained by adding TAG 1 WORD, the Length extension TAG (if present), Issuer 2 WORD, codec number 2 WORD, and the Payload. 14 WORD or fewer use the direct length, and 15 WORD or more use the
1110or1111extended length, and the extension TAG is included in the total (Length).
Example
- The Payload
3F80 0000 8000 0000is binary32[1.0, -0], and the record is 9 WORD in total.