dimod
dimod copied to clipboard
Expose `add_quadratic_from_dense()` method for BQM and QM
There are times where it would be convenient to add quadratic biases from a large dense array to a BQM or QM. There is currently an internal method .add_quadratic_from_dense() that could be cleaned up and exposed via the python interface.
Also add performant addition of linear and quadratic biases from arrays.