I was wondering if there was a syntactically simple way of checking if each element in a numpy array lies between two numbers.
In other words, just as numpy.ar
numpy.ar
one solution would be:
a = numpy.array([1,2,3,4,5]) (a > 1).all() and (a < 5).all()
if you want the acutal array of truth vaues, just use:
(a > 1) & (a < 5)