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.
Currently, all matrix elements in
calc_mcm_spin0and2_pure
are calculated separately. But the 3j symbols form1==m2==0
andm1==-m2==2
that are used in those calculations have symmetries with respect to exchangingl1
andl2
. So ifcalc_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.