dimod.binary.BinaryQuadraticModel.reduce_linear

BinaryQuadraticModel.reduce_linear(function: Callable, initializer: Optional[Union[int, float, numpy.number]] = None) Any[source]

Apply function of two arguments cumulatively to the linear biases.