pub fn risk_contributions(weights: &[f64], cov_matrix: &Array2<f64>) -> Vec<f64>
Component risk contribution of each asset. CRC_i = w_i · (Σw)_i / σ_p so that Σ CRC_i = σ_p.
CRC_i = w_i · (Σw)_i / σ_p
Σ CRC_i = σ_p