Compute the (multiplicative) inverse of a matrix.
Matrix to be inverted.
The multiplicative inverse.
An error if the matrix is not square or not invertible.
Compute the (multiplicative) inverse of a matrix.