title: Does scipy.linalg.inv check whether the matrix is diagonal?
body: <p>Getting the inverse of a diagonal matrix is very simple and does not require complex methods. Does <code>scipy.linalg.inv</code> check whether the matrix is diagonal before it applies more complex methods or do I need to check this myself?</p>