A basic linear algebra for apex.