Skip to content

Instantly share code, notes, and snippets.

View d7om's full-sized avatar

Abdulrahman AlShetwi d7om

View GitHub Profile
@d7om
d7om / matrix.rb
Created May 30, 2012 19:51 — forked from ecleel/matrix.rb
Example of how use matrix class in ruby
require 'matrix'
require 'pp'
# This is how you can define new matrix
a = Matrix[ [1,2], [3,4]]
b = Matrix[ [4,3], [2,1]]
pp a
pp b