{"id":18371022,"url":"https://github.com/emptyflash/shapeless-matrix","last_synced_at":"2025-10-17T16:18:30.189Z","repository":{"id":149693750,"uuid":"90070502","full_name":"emptyflash/shapeless-matrix","owner":"emptyflash","description":"Typesafe matrix operations","archived":false,"fork":false,"pushed_at":"2018-06-15T14:32:38.000Z","size":6,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-15T21:20:51.292Z","etag":null,"topics":["math","matrix","scala","shapeless","typesafe"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/emptyflash.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":"2017-05-02T19:32:48.000Z","updated_at":"2018-08-25T20:58:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"25387946-2693-4cc5-a824-a8df3173dde8","html_url":"https://github.com/emptyflash/shapeless-matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emptyflash%2Fshapeless-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emptyflash%2Fshapeless-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emptyflash%2Fshapeless-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emptyflash%2Fshapeless-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emptyflash","download_url":"https://codeload.github.com/emptyflash/shapeless-matrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248300558,"owners_count":21080750,"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":["math","matrix","scala","shapeless","typesafe"],"created_at":"2024-11-05T23:42:45.126Z","updated_at":"2025-10-17T16:18:25.160Z","avatar_url":"https://github.com/emptyflash.png","language":"Scala","readme":"# shapeless-matrix\n\nTypesafe matrix operations with Scala and Shapeless\n\n### Example\nMultiplication works for matrices with the correct dimensions\n``` scala\nimport shapeless.Sized\nimport shapeless.nat._\nimport io.github.emptyflash.matrix.Matrix\n\nval matrix = new Matrix[Int, _2, _3](Sized(\n  Sized(1, 2, 3),\n  Sized(4, 5, 6)\n))\nval other = new Matrix[Int, _3, _2](Sized(\n  Sized(1, 2),\n  Sized(3, 4),\n  Sized(5, 6)\n))\n\nmatrix * other\n// Matrix[Int,shapeless.nat._2,shapeless.nat._2] = Matrix(Sized(Sized(22, 28), Sized(49, 64)))\n```\n\nBut will fail at compile time for matrices with incorrect dimensions\n``` scala\nval matrix = new Matrix[Int, _2, _3](Sized(\n  Sized(1, 2, 3),\n  Sized(4, 5, 6)\n))\nval other = new Matrix[Int, _2, _2](Sized(\n  Sized(1, 2),\n  Sized(3, 4)\n))\n\nmatrix * other\n/*\nerror: type mismatch;\n found   : io.github.emptyflash.matrix.Matrix[Int,shapeless.nat._2,shapeless.nat._2]\n required: io.github.emptyflash.matrix.Matrix[Int,shapeless.nat._3,?]\n       matrix * other\n                ^\n*/\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femptyflash%2Fshapeless-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femptyflash%2Fshapeless-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femptyflash%2Fshapeless-matrix/lists"}