pydata / pydata/sparse

Add back `reshape` and `broadcast_to` with format selection

Open
#796 5 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.