Method: Matrix.rows

Defined in:
lib/m500.rb

.rows(rows) ⇒ Object



2893
2894
2895
2896
2897
2898
2899
2900
2901
# File 'lib/m500.rb', line 2893

def Matrix.rows(rows)
  a = instanciate(rows.length,rows.at(0).length)
  rows.each_index{|x|
    rows.at(x).each_index{|y|
      eval("a.at_#{x+1}_#{y+1}= rows.at(#{x}).at(#{y})")
    }
  }
  return a
end