{"id":23111734,"url":"https://github.com/dieproht/matr","last_synced_at":"2025-10-13T19:37:33.345Z","repository":{"id":41874128,"uuid":"340297729","full_name":"dieproht/matr","owner":"dieproht","description":"A Scala 3 matrix library","archived":false,"fork":false,"pushed_at":"2025-07-18T07:03:00.000Z","size":268,"stargazers_count":9,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T19:34:27.959Z","etag":null,"topics":["matrix-library","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/dieproht.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-19T07:59:05.000Z","updated_at":"2025-07-18T06:52:39.000Z","dependencies_parsed_at":"2025-03-10T21:21:14.495Z","dependency_job_id":"dc41f647-89d0-44e0-8eee-6a8f12a5322c","html_url":"https://github.com/dieproht/matr","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dieproht/matr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieproht%2Fmatr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieproht%2Fmatr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieproht%2Fmatr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieproht%2Fmatr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dieproht","download_url":"https://codeload.github.com/dieproht/matr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieproht%2Fmatr/sbom","scorecard":{"id":184661,"data":{"date":"2025-08-11","repo":{"name":"github.com/dieproht/matr","commit":"c16ce93da606565083abf4b24f305870c06c781b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.5,"checks":[{"name":"Maintained","score":8,"reason":"10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"Found 17/26 approved changesets -- score normalized to 6","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dieproht/matr/release.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"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":"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: Apache License 2.0: 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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:6"],"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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-16T19:34:31.010Z","repository_id":41874128,"created_at":"2025-08-16T19:34:31.010Z","updated_at":"2025-08-16T19:34:31.010Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016928,"owners_count":26085888,"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-10-13T02:00:06.723Z","response_time":61,"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":["matrix-library","scala"],"created_at":"2024-12-17T02:10:12.432Z","updated_at":"2025-10-13T19:37:33.306Z","avatar_url":"https://github.com/dieproht.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matr [ˈmætə]\n\n![Build status](https://github.com/dieproht/matr/actions/workflows/ci.yml/badge.svg)\n[![Join the chat at https://gitter.im/dieproht/matr](https://badges.gitter.im/dieproht/matr.svg)](https://gitter.im/dieproht/matr?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)\n![Maven Central](https://img.shields.io/maven-central/v/io.github.dieproht/matr-bundle_3.svg)\n\n## A Scala 3 matrix library.\n\nMatr is an attempt to bring together safety, flexibility and simplicity for matrix calculations. \n\n* Safety through typed shapes and immutable data\n* Flexibility through loose coupling between interface, data and operations\n* Simplicity through an easily accessible API and \"batteries included\" default implementations, both with zero dependencies\n\n## Getting Started\n\nAdd the following dependency to your SBT build configuration:\n```scala\nlibraryDependencies += \"io.github.dieproht\" %% \"matr-bundle\" % \"\u003clatest version\u003e\"\n```\n\n## Basic Usage\n\n```scala\n   // Bring API interfaces in scope\n   import matr.{Matrix, MatrixFactory}\n   // Bring bundled implementations in scope\n   import matr.MatrBundle.given\n   // Create a Matrix from tuples\n   val a: Matrix[3, 4, Int] =\n      MatrixFactory[3, 4, Int].fromTuple(\n         (0, 8, 15, 0),\n         (4, 7, 1, 1),\n         (1, 2, 3, 4)\n      )\n   // Create a Matrix of ones\n   val b: Matrix[3, 4, Int] = MatrixFactory[3, 4, Int].ones\n   // Add two matrices\n   val c: Matrix[3, 4, Int] = a + b\n   // Create a Matrix of random numbers\n   val d: Matrix[4, 2, Int] =\n      MatrixFactory[4, 2, Int].tabulate((_, _) =\u003e scala.util.Random.nextInt(20))\n   // Calculate the dot product of two Matrices\n   val e: Matrix[3, 2, Int] = c dot d\n   // Transpose a Matrix\n   val f: Matrix[2, 3, Int] = e.transpose\n   // Pretty print a Matrix\n   println(f.mkString)\n   // ... it outputs something like this:\n   // ⎛ 73,  77, 116⎞\n   // ⎝430, 253, 179⎠\n```\n\nMatr checks the shape of a Matrix at compile-time, thus the following code does *not* compile: \n```scala\n   // Element (2, 3) is missing when creating the Matrix\n   val ae =\n      MatrixFactory[3, 4, Int].fromTuple(\n         (0, 8, 15, 0),\n         (4, 7, 1, 1),\n         (1, 2, 3)\n      )\n    \n   // Adding two Matrices with different dimensions is not possible\n   val be = MatrixFactory[2, 5, Int].ones\n   val ce = a + be\n\n   // Column dimension of left-hande side and row dimension of right-hand side \n   // must be equal when calculating dot product\n   val de = MatrixFactory[1, 2, Int].tabulate((_, _) =\u003e scala.util.Random.nextInt(20))\n   val ee = c dot de\n```\n\n## Status of the Project\n\nThis project is currently in an early phase. If you are looking for a mature tool for matrix calculations in Scala, you should definitely consider [Breeze](https://github.com/scalanlp/breeze)!\n\n## Copyright and License\n\nAll code is available to you under the Apache 2 license, available at\nhttps://opensource.org/licenses/Apache-2.0. \n\nCopyright Karl F Walkow, 2020 - 2021. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieproht%2Fmatr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdieproht%2Fmatr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieproht%2Fmatr/lists"}