simonsobs / pspy

Python power spectrum code
Other
7 stars 5 forks source link

Idea for speedup in calc_mcm_spin0and2_pure #81

Closed mreineck closed 11 months ago

mreineck commented 12 months ago

Currently, all matrix elements in calc_mcm_spin0and2_pure are calculated separately. But the 3j symbols for m1==m2==0 and m1==-m2==2 that are used in those calculations have symmetries with respect to exchanging l1 and l2. So if calc_coupling_elem_spin0and2_pure was changed to not only return the result for element (l1,l2) but also for element (l2,l1), roughly 30% of run time could be saved.

mreineck commented 11 months ago

This is actually part of #83, so I don't think we need to leave this open.