Skip to content

Instantly share code, notes, and snippets.

@nuheluxulu
Created April 11, 2019 15:50
Show Gist options
  • Save nuheluxulu/c104883b6844fce68eaa9a5713fa48b3 to your computer and use it in GitHub Desktop.
Save nuheluxulu/c104883b6844fce68eaa9a5713fa48b3 to your computer and use it in GitHub Desktop.
example
$ irb
irb(main):001:0> require 'matrix'
=> true
irb(main):002:0> @m = Matrix[[-1, -1], [0, -1]]
=> Matrix[[-1, -1], [0, -1]]
irb(main):003:0> @m.inv
=> Matrix[[(-1/1), (1/1)], [(0/1), (-1/1)]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment