A tiny linear algebra library that I wrote to teach myself numerical linear algebra. It does not depend on any third party libraries.
Check out examples.ipynb
to see what this library can do.
Supports two data types - Matrix
and Vector
.
The Matrix
type has several useful methods like
Method | Function |
---|---|
trace() |
|
det() |
|
inv() |
|
rank() |
|
conjugate() |
|
transpose() |
|
solve(b) |
Finds |
qr_decomposition |
Finds |
_hessenberg() |
Finds the upper Hessenberg form of |
eig() |
Finds the eigenvalues for |
The library supports the usual basic binary operations between matrices, scalars and vectors.
The Vector
type supports the following methods:
Method | Function |
---|---|
dot() |
|
norm() |
|
normalize() |
Yeah, tinypy is slow.
While I have thoroughly tested the correctness of the library against numpy
, it is not meant to be used in any kind of production environment. Just use the standard alternatives.
Not publishing on any package repository for practical reasons.
This project was inspired by the playlist Linear Algebra in C++.