title: Scipy inv(A) vs A.I
body: <p>I'm fairly new to Python and I'm wondering what the difference is between:</p>
  
  <pre><code>inv(A)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>A.I
  </code></pre>
  
  <p>Both return a Numpy array containing the inverse of the matrix <strong>A</strong>.</p>
  
  <p><code>A.I</code> looks to me like it is accessing a variable from the matrix class which stores the inverse of the matrix; however, this would imply that every time <strong>A</strong> is changed, the inverse of <strong>A</strong> must be recalculated (which doesn't seem logical to me).</p>