Menu

Commit [r23220]  Maximize  Restore  History

Huge speed-up of model B14.

task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models.

Time test for systemtests:

test_baldwin_synthetic
2.626s -> 1.990s

test_baldwin_synthetic_full
18.326s -> 13.742s

This is won by not checking single values in the R2eff array for math domain
errors, but calculating all steps, and in one single round check for finite values.
If just one non-finite value is found, the whole array is returned with a large
penalty of 1e100.

This makes all calculations be the fastest numpy array way.

tlinnet 2014-05-18

changed /branches/disp_speed/lib/dispersion/b14.py
/branches/disp_speed/lib/dispersion/b14.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.