WIP: linear algebra updates