"Less/greater than" comparison of N-dimensional and (N-k)-dimensional numpy arrays
<p>Given two arrays <code>a=np.array([[1, 3], [3, 4]])</code> and <code>b=np.array([2, 2])</code>.</p>

<p>The goal: get array <code>np.array([False, True])</code> by operation like <code>a&gt;b</code>. I.e. compare rows (<code>True</code>  if  each pair of elements satisfy the <code>&gt;</code> operator  else <code>False</code> ) instead of elementwise comparison (i.e. I <strong>don't</strong> want get <code>np.array([[False, True], [True, True]])</code>).</p>

<p>And similar for 3-D and (optional) N-dimensional arrays.
E.g. </p>

<pre><code>a1 = np.array([[[1, 2, 1], [2, 3, 2]], [[3, 4, 3], [4, 3, 4]]])
b1 = np.array([1, 1, 1])
</code></pre>

<p>Operation like <code>a1 &gt; b1</code> have to return <code>np.array([[False, True], [True, True]])</code>.</p>

<p>How to do it?</p>