Skip to content

Instantly share code, notes, and snippets.

@dionsaputra
Created November 22, 2020 17:00
Show Gist options
  • Save dionsaputra/b4d280878776de9dbb63a715c83c7b8c to your computer and use it in GitHub Desktop.
Save dionsaputra/b4d280878776de9dbb63a715c83c7b8c to your computer and use it in GitHub Desktop.
// lhs (left-hand-side), rhs (right-hand-side)
fun solve(lhs: Matrix, rhs: Matrix): Matrix? {
return inverse(lhs)?.let { it x rhs }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment