np.place segfaults for quaddtype
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24
- Forks
- 6
- Avg merge
- 5d 41m
- Merged PRs (30d)
- 3
Description
import numpy as np
from numpy_quaddtype import QuadPrecDType
a = np.zeros((18, 1), dtype=QuadPrecDType())
m = np.zeros((18, 1), dtype=np.bool)
m[3:-3] = True
v = np.ones(12, dtype=QuadPrecDType())
np.place(a, m, v)
print(a, m, v)
never reaches the print in numpy-quaddtype==0.2.0.
@SwayamInSync has this been fixed since?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the supplied reproduction with numpy-quaddtype==0.2.0 and inspect the interaction between np.place, QuadPrecDType, and the boolean mask. Done means the call no longer segfaults and execution reaches the print output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100