{"id":45211368,"url":"https://github.com/csicar/purescript-sized-matrices","last_synced_at":"2026-02-20T16:32:12.013Z","repository":{"id":58231420,"uuid":"115292393","full_name":"csicar/purescript-sized-matrices","owner":"csicar","description":"Sized Matrices for Purescript","archived":false,"fork":false,"pushed_at":"2020-02-20T14:51:19.000Z","size":53,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-11T19:37:02.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","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/csicar.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":"2017-12-24T23:34:49.000Z","updated_at":"2020-02-20T14:51:22.000Z","dependencies_parsed_at":"2022-08-31T03:30:11.828Z","dependency_job_id":null,"html_url":"https://github.com/csicar/purescript-sized-matrices","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/csicar/purescript-sized-matrices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csicar%2Fpurescript-sized-matrices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csicar%2Fpurescript-sized-matrices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csicar%2Fpurescript-sized-matrices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csicar%2Fpurescript-sized-matrices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csicar","download_url":"https://codeload.github.com/csicar/purescript-sized-matrices/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csicar%2Fpurescript-sized-matrices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-02-20T16:32:11.480Z","updated_at":"2026-02-20T16:32:12.004Z","avatar_url":"https://github.com/csicar.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sized-Matrices\n====\n\n```purescript\n\u003e import Data.Typelevel.Num.Reps\n\u003e import Data.Matrix\n\u003e (one :: Matrix D3 D3 Int)\n  [1,0,0]\n  [0,1,0]\n  [0,0,1]\n\u003e (zero :: Matrix D7 D7 Int)\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n  [0,0,0,0,0,0,0]\n\u003e (one :: Matrix D4 D4 Int) * one\n  [1,0,0,0]\n  [0,1,0,0]\n  [0,0,1,0]\n  [0,0,0,1]\n\u003e import Data.Matrix.Reps\n\u003e m1 = matrix22 1 2 3 4 * matrix22 1 2 3 4 \n\u003e m1\n  [7,10]\n  [15,22]\n\u003e transpose m1\n  [7,15]\n  [10,22]\n\u003e concatH m1 (transpose m1)\n  [7,10,7,15]\n  [15,22,10,22]\n\u003e fill (\\x y -\u003e x + y) :: Matrix D3 D3 Int\n  [0,1,2]\n  [1,2,3]\n  [2,3,4]\n\u003e import Data.Matrix.Algorithms\n\u003e det $ matrix22 1.0 2.0 3.0 4.0\n-2.0\n\u003e import Data.Matrix.RegularMatrices\n\u003e recip $ RegularMatrix $ matrix22 1.0 2.0 3.0 4.0\n  [-2.0,1.0]\n  [1.5,-0.5]\n\u003e vec = 1 +\u003e 2 +\u003e 3 +\u003e 4 +\u003e 5 +\u003e Vec.singleton 6\n\u003e vec\n[1,2,3,4,5,6]\n\u003e fromVec vec :: Matrix D2 D3 Int\n  [1,2,3]\n  [4,5,6]\n\u003e fromVec vec :: Matrix D3 D2 Int\n  [1,2]\n  [3,4]\n  [5,6]\n\u003e fromVec vec :: Matrix D2 D2 Int\n... will be an error, since dimensions don't match up\n```\n\nFeatures\n-- \n\n- typesafe size\n- Complete `Semiring` and `Ring` implementation\n- Matrix multiplication\n- Transpose\n- Matrix addition\n- Determinant\n- Inverse Matrix","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsicar%2Fpurescript-sized-matrices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsicar%2Fpurescript-sized-matrices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsicar%2Fpurescript-sized-matrices/lists"}