pydata / pydata/sparse

sparse and numba

Open
#378 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

support
Dominant language
Python
Stars
668
Forks
141
Avg merge
2d 8h
Merged PRs (30d)
4

Description

Hi there,

I am using a homemade tensor class in my model code together with numba functions for tensor products. If I understand well, sparse also use numba to accelerate algorithms.

I'm very happy to have found sparse because I don't like to reinvent the wheel. So in the future I would rather use sparse than my homemade solution, but I'm concerned because I use numba in numerous places inside the code. So my question is: Can sparse be used inside njit decorated functions? Is there something like a tensor jitclass?

Thank you in advance.

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

Start by reading the issue discussion about using sparse arrays inside Numba njit-decorated functions and tensor jitclasses. The issue names no files or tests; the scope and acceptance criteria would need to be established before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.