https://github.com/ruby/matrix

An implementation of Matrix and Vector classes

https://github.com/ruby/matrix

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

hacktoberfest ruby

Keywords from Contributors

sequences projection interactive genomics authorization serializer measurement cycles packaging charts
Last synced: 6 months ago · JSON representation

Repository

An implementation of Matrix and Vector classes

Basic Info
  • Host: GitHub
  • Owner: ruby
  • License: other
  • Language: Ruby
  • Default Branch: master
  • Homepage:
  • Size: 261 KB
Statistics
  • Stars: 73
  • Watchers: 36
  • Forks: 25
  • Open Issues: 2
  • Releases: 7
Topics
hacktoberfest ruby
Created over 8 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

Matrix Version Bundled Gem Test

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

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

All Time
  • Total Commits: 244
  • Total Committers: 34
  • Avg Commits per committer: 7.176
  • Development Distribution Score (DDS): 0.557
Past Year
  • Commits: 7
  • Committers: 4
  • Avg Commits per committer: 1.75
  • Development Distribution Score (DDS): 0.571
Top Committers
Name Email 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
dependencies (5) github_actions (4)

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.

  • Versions: 8
  • Dependent Packages: 69
  • Dependent Repositories: 43,643
  • Downloads: 121,655,208 Total
  • Docker Downloads: 4,106,186,641
Rankings
Docker downloads count: 0.0%
Dependent repos count: 0.2%
Downloads: 0.4%
Dependent packages count: 0.5%
Average: 2.2%
Forks count: 4.9%
Stargazers count: 7.2%
Maintainers (3)
Last synced: 6 months ago
proxy.golang.org: github.com/ruby/matrix
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Forks count: 4.2%
Stargazers count: 5.5%
Average: 7.5%
Dependent packages count: 9.6%
Dependent repos count: 10.8%
Last synced: 6 months ago
alpine-v3.18: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 10.5%
Forks count: 19.6%
Stargazers count: 22.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.18: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 10.5%
Forks count: 19.6%
Stargazers count: 22.3%
Maintainers (1)
Last synced: 6 months ago
alpine-edge: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 14.6%
Average: 14.9%
Forks count: 20.5%
Stargazers count: 24.4%
Maintainers (1)
Last synced: 6 months ago
alpine-edge: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 14.6%
Average: 14.9%
Forks count: 20.5%
Stargazers count: 24.4%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.16: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 14.9%
Forks count: 15.1%
Stargazers count: 17.3%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.16: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 14.9%
Forks count: 15.1%
Stargazers count: 17.3%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.17: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 16.5%
Forks count: 17.9%
Stargazers count: 20.7%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.17: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 16.5%
Forks count: 17.9%
Stargazers count: 20.7%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.20: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.20: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.22: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: ruby-matrix

An implementation of Matrix and Vector classes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.22: ruby-matrix-doc

An implementation of Matrix and Vector classes (ri docs)

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Gemfile rubygems
  • rake >= 0
  • test-unit >= 0
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite
matrix.gemspec rubygems
.github/workflows/push_gem.yml actions
  • actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
  • ruby/setup-ruby a6e6f86333f0a2523ece813039b8b4be04560854 composite
  • rubygems/release-gem a25424ba2ba8b387abc8ef40807c2c85b96cbe32 composite
  • step-security/harden-runner 6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 composite