3 ms·
def inverse_of(matrix): return adjugate_of(matrix) / determinant_of(matrix) aiiieeee no, don't do that
by llimllib 9y ago
def inverse_of(matrix):
return adjugate_of(matrix) / determinant_of(matrix)
aiiieeee no, don't do that
- deleted 9y ago[deleted]
- aaronblohowiak 9y agocare to elaborate?
- jacob019 9y agoWhy? Don't like self-documenting code?
- scienceman 9y agoIn the context of matrices, its pretty clear what inv, adj, and det mean.
- knappa 9y agoIt's numerically unstable and O(n^3) (at least, probably worse) when computing via row reduction is O(n^2).
- BeetleB 9y agoNo doubt, the article was written by a physicist.