This applies mathmagical operations to matricies.