LA: Add linear algebra functions and structs.