Guest User

Untitled

a guest
May 27th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. invertMatrix :: Matrix -> Matrix
  2. invertMatrix = snd . splitCol . scaleToOne . twice (flipAppend . splitCol . simpleGauss) . ap mColAppend (identityMatrix . dimRow)
  3. where
  4. flipAppend :: (Matrix, Matrix) -> Matrix
  5. flipAppend = uncurry mColAppend . join (***) flipMatrix
  6. twice f = f . f
Add Comment
Please, Sign In to add comment