https://github.com/ruby/matrix
An implementation of Matrix and Vector classes
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
An implementation of Matrix and Vector classes
Basic Info
Statistics
- Stars: 73
- Watchers: 36
- Forks: 25
- Open Issues: 2
- Releases: 7
Topics
Metadata Files
README.md
Matrix

An implementation of Matrix and Vector classes.
The 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.).
The Vector class represents a mathematical vector, which is useful in its own right, and also constitutes a row or column of a Matrix.
Installation
The matrix library comes pre-installed with Ruby. Unless you need recent features, you can simply require 'matrix' directly, no need to install it.
If you need features that are more recent than the version of Ruby you want to support (check the CHANGELOG), you must use the gem. To do this, add this line to your application's Gemfile or gem's gemspec:
ruby
gem 'matrix'
And then execute:
$ bundle
To make sure that the gem takes precedence over the builtin library, call bundle exec ... (or call gem 'matrix' explicitly).
Usage
ruby
require 'matrix'
m = Matrix[[1, 2], [3, 4]]
m.determinant # => -2
Development
After 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.
To 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.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/matrix.
License
The gem is available as open source under the terms of the 2-Clause BSD License.
Owner
- Name: The Ruby Programming Language
- Login: ruby
- Kind: organization
- Email: info@ruby-lang.org
- Location: Matsue, Japan
- Website: https://www.ruby-lang.org/
- Repositories: 171
- Profile: https://github.com/ruby
Repositories related to the Ruby Programming language
GitHub Events
Total
- Create event: 3
- Release event: 1
- Issues event: 1
- Watch event: 9
- Delete event: 2
- Push event: 5
- Pull request event: 4
- Fork event: 2
Last Year
- Create event: 3
- Release event: 1
- Issues event: 1
- Watch event: 9
- Delete event: 2
- Push event: 5
- Pull request event: 4
- Fork event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| marcandre | m****e@b****e | 108 |
| Hiroshi SHIBATA | h****t@r****g | 43 |
| matz | m****z@b****e | 22 |
| nobu | n****u@b****e | 12 |
| keiju | k****u@b****e | 9 |
| kazu | k****u@b****e | 4 |
| yugui | y****i@b****e | 4 |
| Marcus Stollsteimer | s****r@w****e | 3 |
| Akira Matsuda | r****e@d****p | 3 |
| dependabot[bot] | 4****] | 3 |
| mame | m****e@b****e | 3 |
| naruse | n****e@b****e | 3 |
| gsinclair | g****r@b****e | 2 |
| dave | d****e@b****e | 2 |
| Felix Wolfsteller | f****r@g****m | 2 |
| Jan Lelis | m****l@j****e | 2 |
| akr | a****r@b****e | 2 |
| Benoit Daloze | e****p@g****m | 1 |
| Fernando Wolf Bona | b****o@g****m | 1 |
| Gannon McGibbon | g****n@g****m | 1 |
| Jason Garber | j****n@s****g | 1 |
| zzak | z****k@b****e | 1 |
| Koichi Sasada | k****1@a****t | 1 |
| Takashi Kokubun | t****n@g****m | 1 |
| ayumin | a****n@b****e | 1 |
| drbrain | d****n@b****e | 1 |
| kojix2 | 2****k@g****m | 1 |
| shugo | s****o@b****e | 1 |
| shyouhei | s****i@b****e | 1 |
| svn | s****n@b****e | 1 |
| and 4 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 30
- Average time to close issues: 17 days
- Average time to close pull requests: 7 days
- Total issue authors: 5
- Total pull request authors: 15
- Average comments per issue: 3.29
- Average comments per pull request: 0.87
- Merged pull requests: 23
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 1
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 22 minutes
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- fwolfst (3)
- turonn (1)
- headius (1)
- coffeejunk (1)
- mcartron (1)
Pull Request Authors
- hsbt (6)
- dependabot[bot] (5)
- marcandre (4)
- janlelis (3)
- stomar (3)
- fwolfst (2)
- olleolleolle (2)
- AlessandroMinali (1)
- k0kubun (1)
- grzegorz-jakubiak (1)
- kojix2 (1)
- zverok (1)
- gmcgibbon (1)
- universato (1)
- ko1 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 18
-
Total downloads:
- rubygems 121,655,208 total
- Total docker downloads: 4,106,186,641
-
Total dependent packages: 69
(may contain duplicates) -
Total dependent repositories: 43,643
(may contain duplicates) - Total versions: 37
- Total maintainers: 4
rubygems.org: matrix
An implementation of Matrix and Vector classes.
- Homepage: https://github.com/ruby/matrix
- Documentation: http://www.rubydoc.info/gems/matrix/
- License: Ruby,BSD-2-Clause
-
Latest release: 0.4.3
published 8 months ago
Rankings
proxy.golang.org: github.com/ruby/matrix
- Documentation: https://pkg.go.dev/github.com/ruby/matrix#section-documentation
- License: other
-
Latest release: v0.4.3
published 8 months ago
Rankings
alpine-v3.18: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r1
published almost 3 years ago
Rankings
Maintainers (1)
alpine-v3.18: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r1
published almost 3 years ago
Rankings
Maintainers (1)
alpine-edge: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r3
published 10 months ago
Rankings
Maintainers (1)
alpine-edge: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r3
published 10 months ago
Rankings
Maintainers (1)
alpine-v3.16: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r0
published almost 4 years ago
Rankings
Maintainers (1)
alpine-v3.16: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r0
published almost 4 years ago
Rankings
Maintainers (1)
alpine-v3.17: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r0
published almost 4 years ago
Rankings
Maintainers (1)
alpine-v3.17: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r0
published almost 4 years ago
Rankings
Maintainers (1)
alpine-v3.19: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r1
published almost 3 years ago
Rankings
Maintainers (1)
alpine-v3.19: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r1
published almost 3 years ago
Rankings
Maintainers (1)
alpine-v3.20: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r2
published about 2 years ago
Rankings
Maintainers (1)
alpine-v3.21: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r2
published about 2 years ago
Rankings
Maintainers (1)
alpine-v3.20: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r2
published about 2 years ago
Rankings
Maintainers (1)
alpine-v3.22: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r3
published 10 months ago
Rankings
Maintainers (1)
alpine-v3.21: ruby-matrix
An implementation of Matrix and Vector classes
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r2
published about 2 years ago
Rankings
Maintainers (1)
alpine-v3.22: ruby-matrix-doc
An implementation of Matrix and Vector classes (ri docs)
- Homepage: https://github.com/ruby/matrix
- License: BSD-2-Clause AND Ruby
-
Latest release: 0.4.2-r3
published 10 months ago
Rankings
Maintainers (1)
Dependencies
- rake >= 0
- test-unit >= 0
- actions/checkout v4 composite
- ruby/setup-ruby v1 composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ruby/setup-ruby a6e6f86333f0a2523ece813039b8b4be04560854 composite
- rubygems/release-gem a25424ba2ba8b387abc8ef40807c2c85b96cbe32 composite
- step-security/harden-runner 6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 composite