MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::mx::mxint8 Struct Reference

MXINT8: a scale byte, then 32 two's-complement int8 elements. 33 bytes. More...

#include <mx_schemes.hpp>

Static Public Member Functions

static float decode_element (const std::byte *src, std::size_t j) noexcept
 Element j < block_size of the block at src: asserted, as element access is (#826).
static void decode (const std::byte *src, float *dst) noexcept

Static Public Attributes

static constexpr std::size_t block_size = 32
static constexpr std::size_t block_bytes = 1 + 32

Detailed Description

MXINT8: a scale byte, then 32 two's-complement int8 elements. 33 bytes.

Member Function Documentation

◆ decode()

void mtl::mx::mxint8::decode ( const std::byte * src,
float * dst )
inlinestaticnoexcept

◆ decode_element()

float mtl::mx::mxint8::decode_element ( const std::byte * src,
std::size_t j )
inlinestaticnoexcept

Element j < block_size of the block at src: asserted, as element access is (#826).

For j >= 32 it read past the block.

Member Data Documentation

◆ block_bytes

std::size_t mtl::mx::mxint8::block_bytes = 1 + 32
staticconstexpr

◆ block_size

std::size_t mtl::mx::mxint8::block_size = 32
staticconstexpr

The documentation for this struct was generated from the following file: