title: How to set the minimum and maximum value for each item in a Numpy array?
body: <p>Suppose I have a numpy array</p>
  
  <pre><code>a = np.array([1, 100, 123, -400, 85, -98])
  </code></pre>
  
  <p>And I want to limit each value between <code>-100</code> and <code>90</code>. So basically, I want the numpy array to be like this:</p>
  
  <pre><code>a = np.array([1, 90, 90, -100, 85, -98])
  </code></pre>
  
  <p>I know this can be done through iterating over the numpy array, but is there any other efficient method to carry out this task?</p>