Skip to content

Add sparse matrix by dense vector multiplication #1565

@sakrejda

Description

@sakrejda

I let this go stale, I'm going to fix it up so I can get it in now, the background is in pull request 1405. It needs to be two separate pull requests now, one for stan-dev/stan and one for stan-dev/math. For stan-dev only the function signature needs to be exposed.

Fixes

  • Expose one multiplication function---named "csr_matrix_times_vector"
  • Expose constructor for a dense matrix using the sparse format---named "csr_to_dense_matrix"
  • Expose extractors for turning dense matrix to sparse matrix components named:
    • "csr_extract_w"
    • "csr_extract_v"
    • "csr_extract_u"
    • "csr_extract_z"
  • add documentation
  • expose it to the language
  • add test models testing each instantiation of the function

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions