dimod.binary.BinaryQuadraticModel.from_numpy_vectors

classmethod BinaryQuadraticModel.from_numpy_vectors(linear, quadratic, offset, vartype, *, variable_order=None, dtype=<class 'numpy.float64'>)[source]

Create a binary quadratic model from NumPy vectors.