#NEWLINE# def _do_surface_dots_subset( intrad , rsurf , rmags , rref , refl , lsurf , rlens , this_nn , cosmags , ws , volume , lut , n_fact , ch_type , idx ) : #NEWLINE# #INDENT# "Helper for parallelization.\n\n    Parameters\n    ----------\n    refl : array | None\n        If ch_type is 'eeg', the magnitude of position vector of the\n        virtual reference (never used).\n    lsurf : array\n        Magnitude of position vector of the surface points.\n    rlens : list of arrays of length n_coils\n        Magnitude of position vector.\n    this_nn : array, shape (n_vertices, 3)\n        Surface normals.\n    cosmags : list of array.\n        Direction of the integration points in the coils.\n    ws : list of array\n        Integration weights of the coils.\n    volume : bool\n        If True, compute volume integral.\n    lut : callable\n        Look-up table for evaluating Legendre polynomials.\n    n_fact : array\n        Coefficients in the integration sum.\n    ch_type : str\n        'meg' or 'eeg'\n    idx : array, shape (n_coils x 1)\n        Index of coil.\n\n    Returns\n    -------\n    products : array, shape (n_coils, n_coils)\n        The integration products.\n    " #NEWLINE# products = _fast_sphere_dot_r0 ( intrad , rsurf , rmags , lsurf , rlens , this_nn , cosmags , None , ws , volume , lut , n_fact , ch_type ) . T #NEWLINE# if ( rref is not None ) : #NEWLINE# #INDENT# raise NotImplementedError #NEWLINE# #UNINDENT# return products