Menu

Commit [r23970]  Maximize  Restore  History

Small speed ups for all of the frame order models in the quasi-random numerical PCS integration.

These changes result in an ~10% speed up. Testing via the func_pseudo_ellipse() target function
using the relax profiling flag, the time for one optimisation decreased from 158 to 146 seconds.

The changes consist of pre-calculating all rotations of the rotation matrix into the motional
eigenframe in one mathematical operation rather than one operation per Sobol' point rotation,
unpacking the Sobol' points into the respective angles prior to looping over the points, and taking
the absolute value of the torsion angle and testing if it is out of the bounds rather than checking
both the negative and positive values.

bugman 2014-06-16

changed /branches/frame_order_cleanup/lib/frame_order/double_rotor.py
changed /branches/frame_order_cleanup/lib/frame_order/iso_cone.py
changed /branches/frame_order_cleanup/lib/frame_order/iso_cone_torsionless.py
changed /branches/frame_order_cleanup/lib/frame_order/matrix_ops.py
changed /branches/frame_order_cleanup/lib/frame_order/pseudo_ellipse.py
changed /branches/frame_order_cleanup/lib/frame_order/pseudo_ellipse_torsionless.py
changed /branches/frame_order_cleanup/lib/frame_order/rotor.py
/branches/frame_order_cleanup/lib/frame_order/double_rotor.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/iso_cone.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/iso_cone_torsionless.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/matrix_ops.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/pseudo_ellipse.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/pseudo_ellipse_torsionless.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/frame_order/rotor.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.