{"id":20566831,"url":"https://github.com/damienpontifex/linearalgebraextensions","last_synced_at":"2025-04-14T15:53:03.469Z","repository":{"id":19334178,"uuid":"22572926","full_name":"damienpontifex/LinearAlgebraExtensions","owner":"damienpontifex","description":"Extensions to simplify the use of the LinearAlgebra framework on iOS 8 and OS X 10.10 utilising Swift operator overloading","archived":false,"fork":false,"pushed_at":"2016-08-20T09:31:02.000Z","size":414,"stargazers_count":18,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T04:41:43.616Z","etag":null,"topics":["linearalgebra-framework","matrix-multiplication","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/damienpontifex.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":"2014-08-03T10:42:31.000Z","updated_at":"2023-09-05T15:09:49.000Z","dependencies_parsed_at":"2022-08-28T03:21:33.258Z","dependency_job_id":null,"html_url":"https://github.com/damienpontifex/LinearAlgebraExtensions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienpontifex%2FLinearAlgebraExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienpontifex%2FLinearAlgebraExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienpontifex%2FLinearAlgebraExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienpontifex%2FLinearAlgebraExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damienpontifex","download_url":"https://codeload.github.com/damienpontifex/LinearAlgebraExtensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248911257,"owners_count":21182060,"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":["linearalgebra-framework","matrix-multiplication","swift"],"created_at":"2024-11-16T04:43:48.767Z","updated_at":"2025-04-14T15:53:03.408Z","avatar_url":"https://github.com/damienpontifex.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"LinearAlgebraExtensions\n=======================\n\nExtensions to simplify the use of the LinearAlgebra framework on iOS 8 and OS X 10.10 utilising Swift operator overloading\n\n## Matrix\nConstruct a matrix from a Swift Array\n\n```\nlet twoDArray = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]\nvar matrix = la_object_t.objectFromArray(twoDArray)\n```\n\n## Operators\n\n```\nvar A: la_object_t\nvar B: la_object_t\n```\n\nMatrix multiplication with operator overloading\n```\nlet C = A * B\n```\n\nMatrix multiplication without\n```\nlet C = la_matrix_product(A, B)\n```\n\nMatrix element multiplication with operator overloading\n```\nlet C = A * 2\n```\nMatrix element multiplication without\n```\nlet scalarSplat = la_splat_from_double(rhs, 0)\nlet C = la_elementwise_product(lhs, scalarSplat)\n```\n\n## Matrix Constructors\n\n- [Double] to column matrix\n- [Double] to row matrix\n- [[Double]] to matrix with size of the contained arrays\n- [Double] to matrix of specified row x columns\n- Ones matrix\n- Zeros matrix\n- Repeated values matrix\n- Identity matrix\n\n\n## Matrix Operations\n\n- matrix * matrix : Matrix multiplication\n- matrix + matrix : Matrix addition\n- matrix - matrix : Matrix subtraction\n\n## Scalar Operations\n\n- matrix * Double : Scalar elementwise multiplication\n- matrix + Double : Scalar elementwise addition\n- matrix - Double : Scalar elementwise subtraction\n- matrix^Double : Scalar elementwise power","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienpontifex%2Flinearalgebraextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamienpontifex%2Flinearalgebraextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienpontifex%2Flinearalgebraextensions/lists"}