isCodeword method

bool isCodeword(
  1. BigInt codeword
)

Whether codeword satisfies every parity check.

Implementation

bool isCodeword(BigInt codeword) => syndrome(codeword) == BigInt.zero;