title: Making a numpy ndarray matrix symmetric
body: <p>I have a 70x70 numpy ndarray, which is mainly diagonal. The only off-diagonal values are the below the diagonal. I would like to make the matrix symmetric.</p>
  
  <p>As a newcomer from Matlab world, I can't get it working without for loops. In MATLAB it was easy:</p>
  
  <pre><code>W = max(A,A')
  </code></pre>
  
  <p>where <code>A'</code> is matrix transposition and the <code>max()</code> function takes care to make the W matrix which will be symmetric.</p>
  
  <p>Is there an elegant way to do so in Python as well?</p>
  
  <p>EXAMPLE
  The sample <code>A</code> matrix is:</p>
  
  <pre><code>1 0 0 0
  0 2 0 0
  1 0 2 0
  0 1 0 3
  </code></pre>
  
  <p>The desired output matrix <code>W</code> is:</p>
  
  <pre><code>1 0 1 0
  0 2 0 1
  1 0 2 0
  0 1 0 3
  </code></pre>