larzmatrix
Linear algebra, no numpy.
Matrix operations — determinant, inverse and linear solving — verified against identities like A x A-inverse = I. Pure Python for when numpy is too heavy.
larzscript pkg install matrix
What you get
- Determinant & inverse
- Linear solve
- Identity-verified
- No numpy
Try it
import "matrix" as matrix let a = [[2, 1], [1, 3]] print(matrix.determinant(a)) print(matrix.inverse(a)) print(matrix.solve(a, [5, 10]))
Output
5 [[0.6, -0.2], [-0.2, 0.4]] [1, 3]
Why it's in the Larz Stack
larzmatrix is a real Larzscript package (larzscript pkg install matrix) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.