title: Python: Indices of all rows in array with non-zero entries only
body: <p>In a <strong>numpy array</strong>, how can I find the <strong>indices of all rows that have non-zero entries only</strong>. For example in the array:</p>
  
  <pre><code>A = np.array([[ 1,  0,  5],
                [25,  2,  0],
                [ 7,  8,  9],
                [ 0,  0,  4],
                [11, 14, 15]])
  </code></pre>
  
  <p>I would like to have [2,4] as the output, since the rows 2 and 4 are the only rows where all entries are non-zero.</p>
  
  <p>Presently, I am using</p>
  
  <pre><code>B = A[np.all(A != 0, axis=1)]
  </code></pre>
  
  <p>to get an array where all rows with at least one zero have been discarded. But I need to find the indices (i.e 2 and 4). </p>