dimod.higherorder.polynomial.BinaryPolynomial.scale#

BinaryPolynomial.scale(scalar, ignored_terms=None)[source]#

Multiply the polynomial by the given scalar.

Parameters:
  • scalar (number) – Value to multiply the polynomial by.

  • ignored_terms (iterable, optional) – Biases associated with these terms are not scaled.