ulf1 / lagmat

Lagmatrix. Create array with time-lagged copies of the features
Apache License 2.0
0 stars 1 forks source link

Is there a quicker way to allocate memory? #3

Closed ulf1 closed 5 years ago

ulf1 commented 6 years ago

Where?

research the internet for a faster way to create an NaN matrix

ulf1 commented 5 years ago

I tried to set B[max(lags):] = np.nan instead of B[:] = np.nan. The memory allocation would then occur during the loop what seems to be more volatile