{"id":15032684,"url":"https://github.com/ruby/matrix","last_synced_at":"2025-04-12T17:46:14.244Z","repository":{"id":27796054,"uuid":"104867405","full_name":"ruby/matrix","owner":"ruby","description":"An implementation of Matrix and Vector classes","archived":false,"fork":false,"pushed_at":"2023-10-20T02:11:42.000Z","size":254,"stargazers_count":67,"open_issues_count":2,"forks_count":23,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-08T22:01:34.438Z","etag":null,"topics":["hacktoberfest","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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-09-26T09:52:06.000Z","updated_at":"2025-04-08T21:47:01.000Z","dependencies_parsed_at":"2024-02-21T14:53:01.724Z","dependency_job_id":null,"html_url":"https://github.com/ruby/matrix","commit_stats":{"total_commits":232,"total_committers":35,"mean_commits":6.628571428571429,"dds":0.6120689655172413,"last_synced_commit":"e584d41b35fa41244591beaff32341b54b689441"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/matrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123155,"owners_count":21051412,"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":["hacktoberfest","ruby"],"created_at":"2024-09-24T20:19:07.876Z","updated_at":"2025-04-12T17:46:14.202Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Matrix [![Version](https://badge.fury.io/rb/matrix.svg)](https://badge.fury.io/rb/matrix) [![Bundled Gem](https://img.shields.io/badge/stdgem-bundled-9c1260.svg)](https://stdgems.org/matrix/)  [![Test](https://github.com/ruby/matrix/workflows/test/badge.svg)](https://github.com/ruby/matrix/actions?query=workflow%3Atest)\n\nAn implementation of `Matrix` and `Vector` classes.\n\nThe `Matrix` class represents a mathematical matrix. It provides methods for creating matrices, operating on them arithmetically and algebraically, and determining their mathematical properties (trace, rank, inverse, determinant, eigensystem, etc.).\n\nThe `Vector` class represents a mathematical vector, which is useful in its own right, and also constitutes a row or column of a `Matrix`.\n\n## Installation\n\nThe `matrix` library comes pre-installed with Ruby. Unless you need recent features, you can simply `require 'matrix'` directly, no need to install it.\n\nIf you need features that are more recent than the version of Ruby you want to support (check the [CHANGELOG](CHANGELOG.md)), you must use the gem. To do this, add this line to your application's Gemfile or gem's gemspec:\n\n```ruby\ngem 'matrix'\n```\n\nAnd then execute:\n\n    $ bundle\n\nTo make sure that the gem takes precedence over the builtin library, call `bundle exec ...` (or call `gem 'matrix'` explicitly).\n\n## Usage\n\n```ruby\nrequire 'matrix'\nm = Matrix[[1, 2], [3, 4]]\nm.determinant # =\u003e -2\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/matrix.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fmatrix/lists"}