negative method

ModulusPoly negative()

Implementation

ModulusPoly negative() {
  final size = _coefficients.length;
  final negativeCoefficients = <int>[];
  for (int i = 0; i < size; i++) {
    negativeCoefficients.add(_field.subtract(0, _coefficients[i]));
  }
  return ModulusPoly(_field, negativeCoefficients);
}