numba_cosine_sum¶
- mdcraft.analysis.structure.numba_cosine_sum(x: ndarray[float]) float[source]¶
Serial Numba-accelerated sum of the cosines of the elements in a one-dimensional NumPy array \(\mathbf{x}\).
\[\sum_{i=1}^N\cos(x_i)\]- Parameters:
- xnp.ndarray
Vector \(\mathbf{x}\).
Shape: \((N,)\).
- Returns:
- sfloat
Sum of the cosines of the elements in the vector \(\mathbf{x}\).