elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Matrix#minor

Returns a section of the matrix.  The parameters are either:
*  start_row, nrows, start_col, ncols; OR
*  row_range, col_range

  Matrix.diagonal(9, 5, -3).minor(0..1, 0..2)
    => 9 0 0
       0 5 0

Like Array#[], negative indices count backward from the end of the
row or column (-1 is the last element). Returns nil if the starting
row or column is greater than row_count or column_count respectively.

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Matrix-minor-for-pr


# Commit to git

git add git commit -m "better docs for Matrix#minor"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Matrix-minor-for-pr

hub pull-request


# Celebrate!