childprocess
https://github.com/enkessler/childprocess
Ruby
Cross-platform Ruby library for managing child processes.
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.Edit
git clone [email protected]:enkessler/childprocess.git
cd childprocess
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Matrix-minor-for-pr
# Commit to gitgit add git commit -m "better docs for Matrix#minor"
# Open pull requestgem 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!