numpy / numpy/numpy-quaddtype

np.place segfaults for quaddtype

Open
#7 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.