dwavesystems / dwavesystems/dimod

Add `size` keyword argument to `BinaryArray` etc

Open
#1,119 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.