title: Numpy array assignment with copy
body: <p>For example, if we have a <code>numpy</code> array <code>A</code>, and we want a <code>numpy</code> array <code>B</code> with the same elements.</p>
  
  <p>What is the difference between the following (see below) methods? When is additional memory allocated, and when is it not?</p>
  
  <ol>
  <li><code>B = A</code></li>
  <li><code>B[:] = A</code> (same as <code>B[:]=A[:]</code>?)</li>
  <li><code>numpy.copy(B, A)</code></li>
  </ol>