Add back `reshape` and `broadcast_to` with format selection
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 668
- Forks
- 141
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 4
Description
> I see that the PR removes `reshape` and `broadcast_to`. Is it intended? I think these functions should stay as they are a part of Array API standard.
I was planning on adding them back as part of a follow-up PR, with some heuristics on the format selection.
Originally posted by @hameerabbasi in https://github.com/pydata/sparse/issues/792#issuecomment-2428775957
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
The issue names the reshape and broadcast_to entry points but no files or tests; start by locating their current implementations and reviewing the Array API standard requirements. Restore both functions with format-selection heuristics, then add or update coverage demonstrating that the selected formats behave as required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100