title: ValueError while finding the largest element in nested arrays
body: <p>Currently I am working on a project in which I need to find out the coordinates as well as the value of the largest element inside a large array (say 500 X 5).</p>
  
  <p>So I used this command to find the maximum value of the array:</p>
  
  <pre><code>y= max(arr) #here arr is my huge array.
  </code></pre>
  
  <p>But I encountered this error:</p>
  
  <pre><code>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  </code></pre>
  
  <p>Can anybody tell me, what should I do to rectify this error?</p>
  
  <p>EDIT:</p>
  
  <p>To be specific, my array <em>arr</em> contains 3 rows and each row itself is an array of size 500 X 5.</p>