stan-dev / stan-dev/math

more efficient sparse matrix multiplies

Open
#3,045 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

Description

Replace the uses of Eigen::SparseMatrix (e.g., in CSR multiply) with more efficient custom code. As an example, @blackwer wrote faster code than Eigen for a project we did here on kmers for biome models (https://github.com/bob-carpenter/kmers) and I'm guessing it should be easy to use that code.

Current Version:

v4.8.1

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 locating the CSR multiply entry point and every use of Eigen::SparseMatrix in the Stan Math codebase. Review the faster custom implementation referenced from the kmers project and compare it with the current operations; done means replacing the relevant sparse multiplies with custom code and demonstrating improved efficiency.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.