cosine_sum_inplace_parallel_2d¶
- mdhelper.algorithm.accelerated.cosine_sum_inplace_parallel_2d(xs: ndarray[float], s: ndarray[float]) None [source]¶
Parallel in-place Numba-accelerated row-wise sum of the cosines of the elements of a two-dimensional NumPy array \(\mathbf{xs}\).
\[\sum_{i=1}^N\cos(x_{ij})\]- Parameters:
- xsnp.ndarray
Matrix \(\mathbf{xs}\).
Shape: \((N,\,M)\).
- snp.ndarray
Array to hold row-wise sum of the cosines of the elements of the matrix \(\mathbf{xs}\).
Shape: \((N,)\).