dwavesystems / dwavesystems/dimod
Add `size` keyword argument to `BinaryArray` etc
Open
enhancement
- Dominant language
- Python
- Stars
- 143
- Forks
- 91
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 3
Description
It would be nice to be able to do
```python
>>> x = dimod.BinaryArray(size=(5, 5))
```
this can be done now with
```python
>>> x = dimod.BinaryArray(range(25)).reshape((5, 5))
```
applies to `IntegerArray`, `SpinArray`, etc as well.
Contributor guide
Assessment
This issue has not been assessed yet.