sine_sum_2d

mdhelper.algorithm.accelerated.sine_sum_2d(xs: ndarray[float]) None[source]

Serial Numba-accelerated row-wise sum of the sines of the elements of a two-dimensional NumPy array \(\mathbf{xs}\).

\[\sum_{i=1}^N\sin(x_{ij})\]
Parameters:
xsnp.ndarray

Matrix \(\mathbf{xs}\).

Shape: \((N,\,M)\).

Returns:
snp.ndarray

Row-wise sum of the sines of the elements of the matrix \(\mathbf{xs}\).

Shape: \((N,)\).