{"id":21515199,"url":"https://github.com/1git2clone/matrix-math-rs","last_synced_at":"2025-03-17T16:16:00.318Z","repository":{"id":241881517,"uuid":"808112507","full_name":"1Git2Clone/matrix-math-rs","owner":"1Git2Clone","description":"It's quite funny how poorly implemented this is. Libraries that do these operations usually work in highly parallelized environments (sometimes entirely on the GPU). But the beauty of doing it manually is the learning curve. (Vec Vec double heap indirections are a crime against humanity)","archived":false,"fork":false,"pushed_at":"2024-05-30T12:14:40.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T02:33:06.488Z","etag":null,"topics":["crate","matrix-calculations","matrix-library","matrix-multiplication","rust","rust-library"],"latest_commit_sha":null,"homepage":"","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/1Git2Clone.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}},"created_at":"2024-05-30T12:09:08.000Z","updated_at":"2024-05-30T12:16:07.000Z","dependencies_parsed_at":"2024-05-30T13:46:38.934Z","dependency_job_id":"0f51c749-500a-4f18-a0b8-1816da742076","html_url":"https://github.com/1Git2Clone/matrix-math-rs","commit_stats":null,"previous_names":["1git2clone/matrix-math-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Git2Clone%2Fmatrix-math-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Git2Clone%2Fmatrix-math-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Git2Clone%2Fmatrix-math-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Git2Clone%2Fmatrix-math-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Git2Clone","download_url":"https://codeload.github.com/1Git2Clone/matrix-math-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066192,"owners_count":20392407,"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","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":["crate","matrix-calculations","matrix-library","matrix-multiplication","rust","rust-library"],"created_at":"2024-11-23T23:54:32.004Z","updated_at":"2025-03-17T16:16:00.294Z","avatar_url":"https://github.com/1Git2Clone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrix-math\n\n[![GH_Build Icon]][GH_Build Status]\u0026emsp;[![Build Icon]][Build Status]\u0026emsp;[![Docs Icon]][Docs]\u0026emsp;[![Version Icon]][Crate]\u0026emsp;[![License Icon]][LICENSE]\n\n[GH_Build Icon]: https://img.shields.io/github/actions/workflow/status/1git2clone/matrix-math-rs/ci.yml?branch=main\n[GH_Build Status]: https://github.com/1git2clone/matrix-math-rs/actions?query=branch%3Amaster\n[Build Icon]: https://gitlab.com/1k2s/matrix-math/badges/main/pipeline.svg\n[Build Status]: https://gitlab.com/1k2s/matrix-math/-/pipelines\n[Docs Icon]: https://docs.rs/matrix-math/badge.svg\n[Docs]: https://docs.rs/matrix-math/latest/leetcode_trees_rs/\n[Version Icon]: https://img.shields.io/crates/v/matrix-math.svg\n[Crate]: https://crates.io/crates/matrix-math\n[License Icon]: https://img.shields.io/badge/license-MIT-blue.svg\n[LICENSE]: LICENSE\n\nA simple Rust library/CLI app that allows for basic work with mathematical Matrices.\n\n## Getting started\n\n```rs\nuse matrix::prelude::*;\n\nfn interactive_matrices_example() -\u003e Result\u003c(), Error\u003e {\n    let matrix1 = matrix::\u003cf32\u003e(1, None, None);\n\n    // By calling matrix2 with the length parameters of matrix1 like so. Doing the operations\n    // unchecked is **SAFE**.\n    let matrix2 = matrix::\u003cf32\u003e(2, Some(matrix1.len()), Some(matrix1[0].len()));\n\n    let sum = matrix_operation_unchecked(MatrixOperation::Addition, \u0026matrix1, \u0026matrix2);\n    println!(\"Sum:\\n{:#?}\", sum);\n\n    let diff = matrix_operation_unchecked(MatrixOperation::Subtraction, \u0026matrix1, \u0026matrix2);\n    println!(\"Difference:\\n{:#?}\", diff);\n\n    let product = matrix_operation_unchecked(MatrixOperation::Multiplication, \u0026matrix1, \u0026matrix2);\n    println!(\"Product:\\n{:#?}\", product);\n\n    let division = matrix_operation_unchecked(MatrixOperation::Division, \u0026matrix1, \u0026matrix2);\n    println!(\"Results from division:\\n{:#?}\", division);\n\n    Ok(())\n}\n\nfn main() -\u003e Result\u003c(), Error\u003e {\n    let args = Args::parse();\n\n    if args.interactive {\n        interactive_matrices_example()?;\n    }\n\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1git2clone%2Fmatrix-math-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1git2clone%2Fmatrix-math-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1git2clone%2Fmatrix-math-rs/lists"}