Matrix inverse.

matrixThe matrix to be inverted.
return valueThe inverse.

The inv function can be used only with square matrices. For singular matrices an error message will be thrown.

This function can be used with complex matrices as well as matrices with quantities.

For non-square matrices see pinv.