#NEWLINE# def _do_self_dots_subset( intrad , rmags , rlens , cosmags , ws , volume , lut , n_fact , ch_type , idx ) : #NEWLINE# #INDENT# 'Helper for parallelization' #NEWLINE# products = np . zeros ( ( len ( rmags ) , len ( rmags ) ) ) #NEWLINE# for ci1 in idx : #NEWLINE# #INDENT# ci2 = ( ci1 + 1 ) #NEWLINE# res = _fast_sphere_dot_r0 ( intrad , rmags [ ci1 ] , rmags [ : ci2 ] , rlens [ ci1 ] , rlens [ : ci2 ] , cosmags [ ci1 ] , cosmags [ : ci2 ] , ws [ ci1 ] , ws [ : ci2 ] , volume , rmags , n_fact , ch_type ) #NEWLINE# products [ ci1 , : ci2 ] = res #NEWLINE# products [ : ci2 , ci1 ] = res #NEWLINE# #UNINDENT# return products