MCPcopy Create free account
hub / github.com/cwida/ALP / decode_value

Method decode_value

include/alp/decoder.hpp:128–131  ·  view source on GitHub ↗

Scalar decoding a single value with ALP

Source from the content-addressed store, hash-verified

126
127 //! Scalar decoding a single value with ALP
128 static inline PT decode_value(const ST encoded_value, const uint8_t factor, const uint8_t exponent) {
129 const PT decoded_value = encoded_value * Constants<PT>::FACT_ARR[factor] * Constants<PT>::FRAC_ARR[exponent];
130 return decoded_value;
131 }
132
133 //! Scalar decoding of an ALP vector
134 static inline void decode(const ST* encoded_integers, const uint8_t fac_idx, const uint8_t exp_idx, PT* output) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected