{"id":13822548,"url":"https://github.com/sparsemat/sprs","last_synced_at":"2026-04-04T12:57:44.545Z","repository":{"id":32204921,"uuid":"35778634","full_name":"sparsemat/sprs","owner":"sparsemat","description":"sparse linear algebra library for rust","archived":false,"fork":false,"pushed_at":"2026-02-10T21:50:13.000Z","size":7710,"stargazers_count":597,"open_issues_count":47,"forks_count":51,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-03-12T15:10:19.519Z","etag":null,"topics":["rust-library","sparse-linear-systems","sparse-matrices"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparsemat.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.rst","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-05-17T19:01:01.000Z","updated_at":"2026-02-27T14:23:55.000Z","dependencies_parsed_at":"2023-07-14T00:47:55.281Z","dependency_job_id":"3a149c68-ff6e-4a82-9e19-df64375b0385","html_url":"https://github.com/sparsemat/sprs","commit_stats":{"total_commits":948,"total_committers":36,"mean_commits":"26.333333333333332","dds":0.2784810126582279,"last_synced_commit":"2572a252d0adcc9b43796d7f6bafd27d7652eb3b"},"previous_names":["vbarrielle/sprs"],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/sparsemat/sprs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsemat%2Fsprs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsemat%2Fsprs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsemat%2Fsprs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsemat%2Fsprs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparsemat","download_url":"https://codeload.github.com/sparsemat/sprs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsemat%2Fsprs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust-library","sparse-linear-systems","sparse-matrices"],"created_at":"2024-08-04T08:02:05.527Z","updated_at":"2026-04-04T12:57:44.527Z","avatar_url":"https://github.com/sparsemat.png","language":"Rust","funding_links":[],"categories":["Rust","Linear Algebra"],"sub_categories":[],"readme":"# sprs, sparse matrices for Rust\n\n[![Build status](https://github.com/sparsemat/sprs/actions/workflows/ci.yml/badge.svg)](https://github.com/sparsemat/sprs/actions)\n[![crates.io](https://img.shields.io/crates/v/sprs.svg)](https://crates.io/crates/sprs)\n\nsprs implements some sparse matrix data structures and linear algebra\nalgorithms in pure Rust.\n\nThe API is a work in progress, and feedback on its rough edges is highly\nappreciated :)\n\n## Features\n\n### Structures\n\n- CSR/CSC matrix\n- triplet matrix\n- Sparse vector\n\n### Operations\n\n- sparse matrix / sparse vector product\n- sparse matrix / sparse matrix product\n- sparse matrix / sparse matrix addition, subtraction\n- sparse vector / sparse vector addition, subtraction, dot product\n- sparse/dense matrix operations\n\n### Algorithms\n\n- Outer iterator on compressed sparse matrices\n- sparse vector iteration\n- sparse vectors joint non zero iterations\n- simple sparse Cholesky decomposition (requires opting into an LGPL license)\n- sparse triangular solves with dense right-hand side\n\n\n## Examples\n\nMatrix construction\n\n```rust\n  use sprs::{CsMat, CsMatOwned, CsVec};\n  let eye : CsMatOwned\u003cf64\u003e = CsMat::eye(3);\n  let a = CsMat::new_csc((3, 3),\n                         vec![0, 2, 4, 5],\n                         vec![0, 1, 0, 2, 2],\n                         vec![1., 2., 3., 4., 5.]);\n```\n\nMatrix vector multiplication\n\n\n```rust\n  use sprs::{CsMat, CsVec};\n  let eye = CsMat::eye(5);\n  let x = CsVec::new(5, vec![0, 2, 4], vec![1., 2., 3.]);\n  let y = \u0026eye * \u0026x;\n  assert_eq!(x, y);\n```\n\nMatrix matrix multiplication, addition\n\n```rust\n  use sprs::{CsMat, CsVec};\n  let eye = CsMat::eye(3);\n  let a = CsMat::new_csc((3, 3),\n                         vec![0, 2, 4, 5],\n                         vec![0, 1, 0, 2, 2],\n                         vec![1., 2., 3., 4., 5.]);\n  let b = \u0026eye * \u0026a;\n  assert_eq!(a, b.to_csr());\n```\n\nFor a more complete example, be sure to check out the [heat diffusion](sprs/examples/heat.rs) example.\n\n\n## Documentation\n\nDocumentation is available at [docs.rs](https://docs.rs/sprs).\n\n## Changelog\n\nSee the [changelog](changelog.rst).\n\n## Minimum Supported Rust Version\n\nThe minimum supported Rust version currently is 1.64. Prior to a 1.0 version,\nbumping the MSRV will not be considered a breaking change, but breakage will\nbe avoided on a best effort basis.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\nPlease see the [contribution guidelines](Guidelines.rst) for additional information about\ncontributing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsemat%2Fsprs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparsemat%2Fsprs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsemat%2Fsprs/lists"}