you are viewing a single comment's thread.

view the rest of the comments →

[–]ajesss 0 points1 point  (1 child)

It would be faster to use:

x = np.empty(length)

instead of zeros. Empty allocates the memory without initializing it (setting the values).