I changed the empty template to full.

We can now cache the inverse of a matrix with these two functions.