An attempt at some linear algebra functionality