dimod icon indicating copy to clipboard operation
dimod copied to clipboard

Add `size` keyword argument to `BinaryArray` etc

Open arcondello opened this issue 3 years ago • 0 comments

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.

arcondello avatar Feb 16 '22 18:02 arcondello