lenskit / lenskit/csr

Syntax alignment with numpy

Open
#29 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
15
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hi, I just found this repository as I need to use a sparse data format inside numba functions. In my exisiting code using numpy arrays I mainly need row indexing and dot products.

Is there a possibility to use csr with the same syntax for these functions? So having sth like A[i,:] which works when A would be a standard numpy array but also when A is a csr.CSR object? This would help me to avoid a lot of duplicate code.

Thank you for your help!

Contributor guide

No contributing guide indexed for this repository

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 reviewing the csr.CSR entry points for row indexing and dot products, then compare their supported syntax with NumPy arrays. The issue does not name specific files or tests, and completion would require defining the scope of compatible A[i,:] and related operations.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.