Guest User

Untitled

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