I would know if there's any difference regarding the speed of calculation between the two lines of python code. Also, I would like to know the difference in the result.(I didn't understand the difference in the result because I can't understand True < 100 is actually True, and it is essential to understand the difference in the result).
a.all() < x
(a < x).all()
N.B.: a is a numpy array (100000 elements) and x is a float32.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire