I saw someone trying to use python and numpy to do simulations. However, it was quiet slow. I read his code and it turnes out to me that he only used numpy packages when dealing with the array/matrix calculation, and all the other variables and codes was defined in the python main console(i.e. for loops).
My questions are:
Is it necessary to write all the variable as numpy variable, for example np.float in order to get the full capability of numpy package?
Also, as from what I'm understanding, python's for loop is quiet slow. But I don't want to use cython for the sake of simplicity and readibility. It there a way for the numpy to use some special iteration process to accelerate the calculation? I saw a page that looks like it but did not quite understand(https://docs.scipy.org/doc/numpy/reference/arrays.nditer.html). Bascially, how to utilize the full capability ofnumpy package?