dimod.binary.BinaryQuadraticModel.add_linear_from_array

BinaryQuadraticModel.add_linear_from_array(linear: Sequence)[source]

Add linear biases from an array-like to a binary quadratic model.

Args:
linear:

A one-dimensional array_like of linear biases.