SciRuby/nmatrix — pull request #115 by ryanmt (2013-08-07 21:37:00+00:00)
Title: added diagonal fxn

Added a simple (one-step) method for generating diagonal array entries from array inputs. Should this be expanded to NMatrix or NVector inputs? Regardless, this makes some of my code (in the Savitzky-Golay filter) a little cleaner. Hopefully it is a useful addition besides.