Lexicographic comparison of two numpy ndarrays
<p>I couldn't find a straightforward way to compare two (multidimensional in my case) arrays the in a lexicographic  way.</p>

<p>Ie.</p>

<pre><code>a = [1,2,3,4]
b = [4,0,1,6]
</code></pre>

<p>For <code>a &lt; b</code> I want to get <code>true</code> where I get <code>[true, false, false, true]</code><br>
For <code>a &gt; b</code> I want to get <code>false</code> where I get <code>[false, true, true, false]</code></p>