Simplify several matrix math functions/calls