cosine_column_sum¶
- mdcraft.analysis.structure.cosine_column_sum(xs: ndarray[float]) ndarray[float][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)\).
- Returns:
- snp.ndarray
Column-wise sums of the cosines of the elements in the matrix \(\mathbf{x}\).
Shape: \((M,)\).