From: Dave Thomas Date: 2000-03-15T11:21:25-06:00 Subject: [ruby-talk:01846] Re: Matrix Multiplication in Ruby "Dat Nguyen" writes: > I remmeber having seen three code samples in Perl, Tcl & Python to multiply > two matrices and store the result into a third matrix. > > How would the code in Ruby be? require 'matrix' m1 = Matrix[ [1, 2], [3, 4] ] m2 = Matrix[ [9, 8], [7, 7] ] m3 = m1 * m2 Dave