{"id":43187624,"url":"https://github.com/dandre3000/matrix","last_synced_at":"2026-02-01T04:22:28.499Z","repository":{"id":258861960,"uuid":"875510835","full_name":"dandre3000/matrix","owner":"dandre3000","description":"Matrix library","archived":false,"fork":false,"pushed_at":"2024-11-06T03:49:29.000Z","size":261,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T17:13:39.565Z","etag":null,"topics":["algebra","array","data","data-structure","math","matrix","vector"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dandre3000/matrix","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dandre3000.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","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-10-20T07:08:07.000Z","updated_at":"2024-11-20T11:46:13.000Z","dependencies_parsed_at":"2024-11-03T15:35:13.130Z","dependency_job_id":null,"html_url":"https://github.com/dandre3000/matrix","commit_stats":null,"previous_names":["dandre3000/matrix"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dandre3000/matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandre3000%2Fmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandre3000%2Fmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandre3000%2Fmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandre3000%2Fmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dandre3000","download_url":"https://codeload.github.com/dandre3000/matrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dandre3000%2Fmatrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28967658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T03:46:10.227Z","status":"ssl_error","status_checked_at":"2026-02-01T03:46:01.693Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["algebra","array","data","data-structure","math","matrix","vector"],"created_at":"2026-02-01T04:22:27.793Z","updated_at":"2026-02-01T04:22:28.492Z","avatar_url":"https://github.com/dandre3000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dandre3000/matrix\nMatrix math library.\n\n## Usage\n`$ npm install @dandre3000/matrix`\n\n```js\nimport { Matrix } from '@dandre3000/matrix'\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      1, 2,\n      3, 4\n    ]\n  }\n*/\nconst a = new Matrix(2, 2, [1, 2, 3, 4])\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      5, 6,\n      7, 8\n    ]\n  }\n*/\nconst b = new Matrix(2, 2, [5, 6, 7, 8])\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      6, 8,\n      10, 12\n    ]\n  }\n*/\na.add(b)\n```\n\n## API\n```js\nimport { new Matrix } from '@dandre3000/matrix'\n\n/*\n  {\n    rows: 1,\n    columns: 1,\n    data: Float64Array[0]\n  }\n*/\nnew Matrix(1, 1)\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      2, 2,\n      0, 0\n    ]\n  }\n*/\nnew Matrix(2, 2, [2, 2])\n\n/*\n  {\n    rows: 4,\n    columns: 1\n    data: Float64Array[\n      1,\n      2,\n      3,\n      4\n    ]\n  }\n*/\nnew Matrix(4, 1, [1, 2, 3, 4, 5])\n\n/*\n  {\n    rows: 1,\n    columns: 4,\n    data: Float64Array[6, 7, 8, 9]\n  }\n*/\nnew Matrix(1, 4, [6, 7, 8, 9])\n\nconst buffer = new ArrayBuffer(6 * 8)\nconst array = new Float64Array(buffer, 0, 4)\nconst array2 = new Float64Array(buffer, 16, 4)\n\narray2[0] = 1\narray2[1] = 1\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      0, 0,\n      1, 1\n    ]\n  }\n*/\nconst a = new Matrix(2, 2, array)\n\n// true\na.data === array\n\n/*\n  {\n    rows: 2,\n    columns: 2,\n    data: Float64Array[\n      1, 1,\n      0, 0\n    ]\n  }\n*/\nconst b = new Matrix(2, 2, array2)\n\n// true\nb.data === array2\n```\n\n#\n```js\nimport { Matrix } from '@dandre3000/matrix'\n\nconst a = new Matrix(3, 3, [\n  1, 2, 3,\n  4, 5, 6,\n  7, 8, 9\n])\n\nconst b = new Matrix(3, 3, [\n  10, 11, 12,\n  13, 14, 15,\n  16, 17, 18\n])\n\n/*\n  {\n    rows: 3,\n    columns: 3,\n    data: Float64Array[\n      11, 13, 15,\n      17, 19, 21,\n      23, 25, 27\n    ]\n  }\n*/\na.sum(b)\n```\n\n#\n```js\nimport { Matrix } from '@dandre3000/matrix'\n\nconst a = new Matrix(3, 3, [\n  1, 2, 3,\n  4, 5, 6,\n  7, 8, 9\n])\n\nconst b = new Matrix(3, 3, [\n  10, 11, 12,\n  13, 14, 15,\n  16, 17, 18\n])\n\n/*\n  {\n    rows: 3,\n\tcolumns: 3,\n    data: Float64Array[\n    -9, -9, -9,\n    -9, -9, -9,\n    -9, -9, -9\n  ]\n*/\na.subtract(b)\n```\n\n## License\n@dandre3000/matrix is published under the GNU General Public License 3.0:\n\n```\nCopyright (c) 2024 DeAundre Payne\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandre3000%2Fmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdandre3000%2Fmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdandre3000%2Fmatrix/lists"}