linear algebra toolkit eigenvalues