cosine_column_sum_inplace

mdcraft.analysis.structure.cosine_column_sum_inplace(xs: ndarray[float], s: ndarray[float]) None[source]

Evaluates the column-wise sum of the cosines of the elements in a two-dimensional NumPy array \(\mathbf{x}\).

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

Matrix \(\mathbf{x}\).

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

snp.ndarray

Array to hold the column-wise sums of the cosines of the elements in the matrix \(\mathbf{x}\).

Shape: \((N,)\).