Method: Matrix#row_to_a
- Defined in:
- lib/y_support/stdlib_ext/matrix/misc.rb
#row_to_a(n = 0) ⇒ Object
Converts a row into array. If argument is given, it chooses row number, otherwise row 0 is assumed.
53 |
# File 'lib/y_support/stdlib_ext/matrix/misc.rb', line 53 def row_to_a n=0; ( r = row( n ) ) ? r.to_a : nil end |