multiply method

QRPolynomial multiply(
  1. QRPolynomial e
)

Implementation

QRPolynomial multiply(QRPolynomial e) {
  final List<int> foo = Uint8List(length + e.length - 1);

  for (var i = 0; i < length; i++) {
    for (var j = 0; j < e.length; j++) {
      foo[i + j] ^= qr_math.gexp(qr_math.glog(this[i]) + qr_math.glog(e[j]));
    }
  }

  return QRPolynomial(foo, 0);
}