wschreyer / PENTrack

PENTrack - a simulation tool for ultra-cold neutrons, protons and electrons
GNU General Public License v2.0
8 stars 20 forks source link

Add a better performance tricubic_eval function #48

Closed duanebyer closed 6 years ago

duanebyer commented 6 years ago

The old tricubic_eval function from the libtricubic library uses the C pow(double, double) function. This gives poor performance for tricubic interpolation which uses integer powers only. This function has been rewritten to use the C++ standard library pow function to improve performance.