elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Matrix#cofactor
Returns the (row, column) cofactor which is obtained by multiplying
the first minor by (-1)**(row + column).
Matrix.diagonal(9, 5, -3, 4).cofactor(1, 1)
=> -108Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Matrix-cofactor-for-pr
# Commit to gitgit add git commit -m "better docs for Matrix#cofactor"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Matrix-cofactor-for-pr
hub pull-request
# Celebrate!