dimod
dimod copied to clipboard
Add `size` keyword argument to `BinaryArray` etc
It would be nice to be able to do
>>> x = dimod.BinaryArray(size=(5, 5))
this can be done now with
>>> x = dimod.BinaryArray(range(25)).reshape((5, 5))
applies to IntegerArray, SpinArray, etc as well.