Skip to main content
18 events
when toggle format what by license comment
S Apr 21, 2023 at 13:02 history bounty ended John Taylor
S Apr 21, 2023 at 13:02 history notice removed John Taylor
Apr 21, 2023 at 13:02 vote accept John Taylor
Apr 20, 2023 at 15:15 answer added Lukas Lang timeline score: 2
Apr 20, 2023 at 13:26 comment added John Taylor @LukasLang : the toy task I implemented here captures some of the general features of the realistic task I am dealing with, so I expect that I would be able to adapt any algorithm optimizations to the realistic task. "One thing that appears to give a factor of 2" - such speedup is also very crucial for me.
Apr 20, 2023 at 13:14 comment added Lukas Lang What makes you think this can be improved? The computation contains only simple functions, so unless you go into extreme C-level optimizations (at which point you should probably just write C code), you'll need some algorithm-level optimizations (which at some point depends on the exact problem at hand and might not be solvable using only a toy problem). One thing that appears to give a factor of 2 at least is to compute Sin[phrange] and MapAt[Cos,thzrange,{All,1}], and pass that in instead of computing Sin[ph] and Cos[th] every time.
Apr 19, 2023 at 17:13 comment added John Taylor @AlexTrounev : I am looking rather for a direction of the optimization. The code above just serves as a toy example.
Apr 19, 2023 at 13:21 comment added Alex Trounev If we can optimize your current code then it is not means that it gonna be optimized for your more complicated expressions.
Apr 19, 2023 at 11:31 comment added John Taylor @AlexTrounev : it may be expressed in terms of some function of x1, x2.
Apr 19, 2023 at 11:23 comment added Alex Trounev What your remark "In reality, they may be much more complicated" means?
Apr 19, 2023 at 9:01 history edited John Taylor CC BY-SA 4.0
added 108 characters in body
Apr 18, 2023 at 21:11 history edited John Taylor CC BY-SA 4.0
deleted 2 characters in body
S Apr 17, 2023 at 10:07 history bounty started John Taylor
S Apr 17, 2023 at 10:07 history notice added John Taylor Draw attention
Mar 10, 2023 at 9:00 history edited John Taylor CC BY-SA 4.0
added 1 character in body
Mar 7, 2023 at 22:58 history edited John Taylor CC BY-SA 4.0
added 34 characters in body
Mar 7, 2023 at 22:45 history edited John Taylor CC BY-SA 4.0
deleted 26 characters in body
Mar 7, 2023 at 22:39 history asked John Taylor CC BY-SA 4.0