title: Easy way to test if each element in an numpy array lies between two values?
body: <p>I was wondering if there was a syntactically simple way of checking if each element in a numpy array lies between two numbers.</p>
  <p>In other words, just as <code>numpy.array([1,2,3,4,5]) &lt; 5</code> will return <code>array([True, True, True, True, False])</code>, I was wondering if it was possible to do something akin to this:</p>
  <pre><code>1 &lt; numpy.array([1,2,3,4,5]) &lt; 5
  </code></pre>
  <p>... to obtain ...</p>
  <pre><code>array([False, True, True, True, False])
  </code></pre>
  <p>I understand that I can obtain this through logical chaining of boolean tests, but I'm working through some rather complex code and I was looking for a syntactically clean solution.</p>
  <p>Any tips?</p>