NumCpp
2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Namespaces | |
namespace | detail |
Functions | |
template<std::size_t DataBits, std::size_t EncodedBits, std::enable_if_t< greaterThan_v< EncodedBits, DataBits >, int > = 0> | |
int | decode (std::bitset< EncodedBits > encodedBits, std::bitset< DataBits > &decodedBits) |
template<std::size_t DataBits> | |
boost::dynamic_bitset | encode (const std::bitset< DataBits > &dataBits) |
int nc::edac::decode | ( | std::bitset< EncodedBits > | encodedBits, |
std::bitset< DataBits > & | decodedBits | ||
) |
Returns the Hamming SECDED decoded bits for the enocoded bits https://en.wikipedia.org/wiki/Hamming_code
encodedBits | the encoded bits to decode |
decodedBits | the output decoded bits |
std::runtime_error | if DataBits and EncodedBits are not consistent |
std::runtime_error | if the number of data bits does not represent a valid Hamming SECDED code |
boost::dynamic_bitset nc::edac::encode | ( | const std::bitset< DataBits > & | dataBits | ) |
Returns the Hamming SECDED encoded bits for the data bits
dataBits | the data bits to encode |
std::runtime_error | if the number of data bits does not represent a valid Hamming SECDED code |