Skip to content
Prev 313666 / 398502 Next

How to speed up the for loop by releasing memeory

On 12-12-15 10:10 AM, Yong Wang wrote:
You are reallocating and copying con in every step in your loop. 
Preallocate it and just assign new data into the appropriate row and 
things will be much faster.

Duncan Murdoch