childprocess

https://github.com/enkessler/childprocess

Ruby

Cross-platform Ruby library for managing child processes.

Matrix.scalar

Creates an +n+ by +n+ diagonal matrix where each diagonal element is
+value+.
  Matrix.scalar(2, 5)
    => 5 0
       0 5

Source | Google | Stack overflow

Edit

git clone [email protected]:enkessler/childprocess.git

cd childprocess

open

Contribute

# Make a new branch

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


# Commit to git

git add git commit -m "better docs for Matrix.scalar"


# 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-scalar-for-pr

hub pull-request


# Celebrate!