RadixEncoder constructor

RadixEncoder(
  1. int radix
)

Constructor for setting up a radix encoding block

Implementation

RadixEncoder(this.radix) {
  if (pow(2.0, log2Ceil(radix)) != radix) {
    throw RohdHclException('radix must be a power of 2');
  }
}