title: matlab isempty() function in numpy?
body: <p>I have this code in matlab:</p>
  
  <pre><code>switch 1
      case isempty(A) 
  ...
  </code></pre>
  
  <p>where A is a 2 dimension Array.</p>
  
  <p>How can I check with numpy if a 2-dim Array is empty (only has 0 values)?</p>