{"id":13438747,"url":"https://github.com/mikkyang/rust-blas","last_synced_at":"2025-12-12T15:34:54.856Z","repository":{"id":19543291,"uuid":"22791483","full_name":"mikkyang/rust-blas","owner":"mikkyang","description":"BLAS bindings for Rust","archived":false,"fork":false,"pushed_at":"2020-02-01T12:18:31.000Z","size":3964,"stargazers_count":86,"open_issues_count":10,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-20T19:40:39.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikkyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-09T17:34:59.000Z","updated_at":"2025-09-09T08:49:50.000Z","dependencies_parsed_at":"2022-08-02T15:00:26.648Z","dependency_job_id":null,"html_url":"https://github.com/mikkyang/rust-blas","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mikkyang/rust-blas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkyang%2Frust-blas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkyang%2Frust-blas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkyang%2Frust-blas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkyang%2Frust-blas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikkyang","download_url":"https://codeload.github.com/mikkyang/rust-blas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkyang%2Frust-blas/sbom","scorecard":{"id":646364,"data":{"date":"2025-08-11","repo":{"name":"github.com/mikkyang/rust-blas","commit":"bf6d33139eadb2c1215d259fd3b84bf04b531871"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/29 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T12:14:43.519Z","repository_id":19543291,"created_at":"2025-08-21T12:14:43.520Z","updated_at":"2025-08-21T12:14:43.520Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27685546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-07-31T03:01:08.091Z","updated_at":"2025-12-12T15:34:54.838Z","avatar_url":"https://github.com/mikkyang.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Computation","计算 Computation","计算"],"readme":"# RBLAS\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n[![crates.io](http://meritbadge.herokuapp.com/rblas)](https://crates.io/crates/rblas)\n\nRust bindings and wrappers for BLAS (Basic Linear Algebra Subprograms).\n\n## Overview\n\nRBLAS wraps each external call in a trait with the same name (but capitalized).\nThis trait contains a single static method, of the same name. These traits are\ngeneric over the four main types of numbers BLAS supports: `f32`, `f64`,\n`Complex32`, and `Complex64`.\n\nFor example the functions `cblas_saxpy`, `cblas_daxpy`, `cblas_caxypy`, and\n`cblas_zaxpy` are called with the function `Axpy::axpy`.\n\nAdditionally, RBLAS introduces a few traits to shorten calls to these BLAS\nfunctions: `Vector` for types that implement vector-like characteristics and\n`Matrix` for types that implement matrix-like characteristics. The `Vector`\ntrait is already implemented by `Vec` and `[]` types.\n\n[Documentation](http://mikkyang.github.io/rust-blas/doc/rblas/index.html)\n\n## Installation\n\nBy default, the library links with `blas` dynamically. To link to an alternate\nimplementation, like OpenBLAS, use the environment variable `CARGO_BLAS`. If\nyou've already built the bindings, you may need to clean and build again.\n\n```\nexport CARGO_BLAS=openblas\n```\n\n## Example\n\n```rust\nextern crate rblas;\n\nuse rblas::Dot;\n\nfn main() {\n    let x = vec![1.0, -2.0, 3.0, 4.0];\n    let y = [1.0, 1.0, 1.0, 1.0, 7.0];\n\n    let d = Dot::dot(\u0026x, \u0026y[..x.len()]);\n    assert_eq!(d, 6.0);\n}\n```\n\n## Sugared Example (Soon to be Deprecated)\n\n```rust\n#[macro_use]\nextern crate rblas as blas;\nuse blas::math::Mat;\nuse blas::{Matrix, Vector};\nuse blas::math::Marker::T;\n\nfn main() {\n    let x = vec![1.0, 2.0];\n    let xr = \u0026x as \u0026Vector\u003c_\u003e;\n    let i = mat![1.0, 0.0; 0.0, 1.0];\n    let ir = \u0026i as \u0026Matrix\u003c_\u003e;\n\n    assert!(xr + \u0026x == 2.0 * xr);\n    assert!(ir * xr == x);\n\n    let dot = (xr ^ T) * xr;\n    assert!(dot == 5.0);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkyang%2Frust-blas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikkyang%2Frust-blas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkyang%2Frust-blas/lists"}