{"id":19547321,"url":"https://github.com/emilamaj/js-fmgpu","last_synced_at":"2026-06-15T11:31:33.758Z","repository":{"id":153748683,"uuid":"621303411","full_name":"emilamaj/js-fmgpu","owner":"emilamaj","description":"Fast Matrix GPU: GPU accelerated matrix operations in JS","archived":false,"fork":false,"pushed_at":"2023-04-20T15:16:42.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T09:05:50.119Z","etag":null,"topics":["equations-solver","gpu-js","javascript","linear-algebra"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emilamaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-30T11:51:54.000Z","updated_at":"2023-03-30T21:04:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdf84eae-d6ab-41f1-ab1b-9df0de045fc9","html_url":"https://github.com/emilamaj/js-fmgpu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emilamaj/js-fmgpu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilamaj%2Fjs-fmgpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilamaj%2Fjs-fmgpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilamaj%2Fjs-fmgpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilamaj%2Fjs-fmgpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emilamaj","download_url":"https://codeload.github.com/emilamaj/js-fmgpu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emilamaj%2Fjs-fmgpu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34358702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["equations-solver","gpu-js","javascript","linear-algebra"],"created_at":"2024-11-11T03:49:18.781Z","updated_at":"2026-06-15T11:31:33.743Z","avatar_url":"https://github.com/emilamaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Publish to npm](https://github.com/emilamaj/js-fmgpu/actions/workflows/main.yml/badge.svg)](https://github.com/emilamaj/js-fmgpu/actions/workflows/main.yml)\r\n\r\n# FMGPU: Fast Matrix operations of the GPU\r\n\r\nThis library allows to efficiently carry out matrix operations using GPU acceleration.\r\nThe package is available on npm as [js-fmgpu](https://www.npmjs.com/package/js-fmgpu).\r\nThe following functions are currently available:\r\n\r\n## Todo\r\nThe following functions are to be implemented next:\r\n- det (GPU accelerated)\r\n- map\r\n- inverse\r\n\r\n## scale\r\nMultiply input matrix by a scalar value.\r\n`B = fmgpu.scale(A, alpha)`\r\n\r\n## add\r\nAdd two matrices together.\r\n`C = fmgpu.add(A, B)`\r\n\r\n## sub\r\nSubtract second matrix from first one\r\n`C = fmgpu.sub(A, B)`\r\n\r\n## transpose\r\nTranspose the given matrix\r\n`B = fmgpu.transpose(A)`\r\n\r\n## hadamard\r\nReturns Hadamard product, also known as pointwise product between two matrices\r\n`C = fmgpu.hadamard(A, B)`\r\n\r\n## dot\r\nReturns the dot product between two matrices.\r\n`C = fmgpu.dot(A, B)`\r\n\r\n## detJS (pure JS)\r\nReturns the determinant of a given matrix. Note that this function is not yet GPU-accelerated.\r\n`B = fmgpu.detJS(A)`\r\n\r\n## equals\r\nReturns `true` if two matrices are equal (within some epsilon value)\r\n`eq = fmgpu.equals(A, B, 1e-6)`\r\n\r\n## solveLinearSystemSmall (pure JS)\r\nSolves a linear system of equations using pure JS code (less overhead, better for smaller matrices, of size \u003c 200)\r\n`x = fmgpu.solveLinearSystemSmall(A, b)`\r\n\r\n## solveLinearSystem\r\nSolves a linear system of equations using GPU-accelerated code. (Adapted for matrices of size N \u003e 200)\r\n`x = fmgpu.solveLinearSystem(A, b)`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilamaj%2Fjs-fmgpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilamaj%2Fjs-fmgpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilamaj%2Fjs-fmgpu/lists"}