title: python - find positive/negative/positive pattern in numpy array
body: <p>Does <code>numpy</code> have an easy way to determine if an array has a pattern that looks like this: (positives numbers followed by negative numbers followed by positive numbers)?</p>
  <p>Example:</p>
  <pre><code>myArray = np.array([5, 5, 3, 6, -2, -5, 4, 9])
  myArray2 = np.array([5, 5, 3, 6, 8, 4, -5, -8])
  
  if foundPatern(myArray):  # True
  if foundPatern(myArray2): # False
  </code></pre>