{"id":13994916,"url":"https://github.com/clbustos/extendmatrix","last_synced_at":"2026-01-19T12:30:35.107Z","repository":{"id":66264818,"uuid":"646746","full_name":"clbustos/extendmatrix","owner":"clbustos","description":"Cosmin Bonchis's enhancements to the Ruby \"Vector\" and \"Matrix\" module and includes: LU and QR (Householder, Givens, Gram Schmidt, Hessenberg) decompositions, bidiagonalization, eigenvalue and eigenvector calculations. Work on Ruby 1.8.7, 1.9.1 and 1.9.2 (SVN version)","archived":false,"fork":false,"pushed_at":"2015-05-08T16:25:22.000Z","size":283,"stargazers_count":33,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T14:17:33.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyforge.org/projects/matrix/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clbustos.png","metadata":{"files":{"readme":"README.txt","changelog":"History.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-04T15:03:23.000Z","updated_at":"2024-01-04T15:52:02.000Z","dependencies_parsed_at":"2023-02-20T02:30:47.936Z","dependency_job_id":null,"html_url":"https://github.com/clbustos/extendmatrix","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Fextendmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Fextendmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Fextendmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clbustos%2Fextendmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clbustos","download_url":"https://codeload.github.com/clbustos/extendmatrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177698,"owners_count":17743146,"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":[],"created_at":"2024-08-09T14:03:10.619Z","updated_at":"2026-01-19T12:30:35.058Z","avatar_url":"https://github.com/clbustos.png","language":"Ruby","readme":"= extendmatrix\n\n* http://github.com/clbustos/extendmatrix\n\n== DESCRIPTION:\n\nThe project consists of some enhancements to the Ruby \"Matrix\" module and includes: LU and QR (Householder, Givens, Gram Schmidt, Hessenberg) decompositions, bidiagonalization, eigenvalue and eigenvector calculations.\nInclude some aditional code to obtains marginal for rows and columns.\n\nOriginal code from http://rubyforge.org/projects/matrix/ , done by Cosmin Bonchis as a Google Summer of Code 2007 project for Ruby Central Inc.\n\nGem, github repository and current version manteined by Claudio Bustos.\n\n== SYNOPSIS:\n\n  require 'extendmatrix'\n  v = Vector[1, 2, 3, 4]\n  \n  v.magnitude # =\u003e 5.47722557505166\n  \n  v.normalize # =\u003e Vector[0.182574185835055, 0.365148371670111, 0.547722557505166, 0.730296743340221]\n  \n  # Backport from Ruby 1.9.2+\n  m = Matrix.build(4, 3){|i, j| i * 3 + j}\n  # =\u003e Matrix[[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11]]\n  \n  # You could modify the matrix\n  m = Matrix.I(3)\n  m[0,1]=m[1,0]=0.5\n  m[0,2]=m[2,0]=0.7\n  m[1,2]=m[2,1]=0.9\n  m           # =\u003e Matrix[[1, 0.5, 0.7], [0.5, 1, 0.9], [0.7, 0.9, 1]]\n  \n  # Eigenvalues and EigenVectors. PCA at sight :)\n  \n  m.eigenvaluesJacobi =\u003e Vector[0.523942339006665, 0.0632833995384682, 2.41277426145487]\n  m.cJacobiV\n  # =\u003e Matrix[[0.818814082563014, 0.249617871497675, 0.516947208547894], [-0.550168858227442, 0.598307531004925, 0.58253096551128], [-0.163883268313767, -0.761392813580323, 0.62723461144538]]\n== REQUIREMENTS:\n\n* Only Ruby\n\n== INSTALL:\n\n* sudo gem install matrix-extensions\n\n== LICENSE:\n\n\n\nCopyright [2007] Cosmin Bonchis\nCopyright [2010] Claudio Bustos\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use \nthis file except in compliance with the License. You may obtain a copy of the \nLicense at \n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed \nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR \nCONDITIONS OF ANY KIND, either express or implied. See the License for the \nspecific language governing permissions and limitations under the License. \n\n\nSee LICENSE.txt for more details","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclbustos%2Fextendmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclbustos%2Fextendmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclbustos%2Fextendmatrix/lists"}