Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created April 11, 2019 15:43
Show Gist options
  • Save sixtyfive/040af73c64da2b2151f5fd1ca316ea2a to your computer and use it in GitHub Desktop.
Save sixtyfive/040af73c64da2b2151f5fd1ca316ea2a to your computer and use it in GitHub Desktop.
main » Matrix[[-1, -1], [0, -1]].inv
=> Matrix[[(-1/1), (1/1)], [(0/1), (-1/1)]]
main » Matrix[[-1, -1], [-1, -1]].inv
ExceptionForMatrix::ErrNotRegular: Not Regular Matrix
# ???
@nuheluxulu
Copy link

irb(main):009:0> @m = Matrix[[-1, -1], [0, -1]] => Matrix[[-1, -1], [0, -1]] irb(main):010: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