syndrome method

BigInt syndrome(
  1. BigInt codeword
)

Computes the parity-check syndrome of codeword.

Implementation

BigInt syndrome(BigInt codeword) {
  _validatePackedValue(codeword, length, 'codeword');
  return parityCheckMatrix.multiplyVector(codeword);
}