You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
out = np.zeros(egrid.size - 1)
x.apec(energies=egrid, pars=pars, out=out)
will use the memory in out rather than creating a new array [it also returns the out array].
This only works when out has the correct datatype (np.float32 or np.float64) for the model, otherwise it will not be updated (the returned value is correct, but is not the same object as out).
This is crazy and dangerous.
The text was updated successfully, but these errors were encountered:
out = np.zeros(egrid.size - 1)
x.apec(energies=egrid, pars=pars, out=out)
will use the memory in out rather than creating a new array [it also returns the out array].
This only works when out has the correct datatype (np.float32 or np.float64) for the model, otherwise it will not be updated (the returned value is correct, but is not the same object as out).
This is crazy and dangerous.
The text was updated successfully, but these errors were encountered: