MCPcopy Create free account
hub / github.com/Open-Quant/openquant / quad_risk

Function quad_risk

crates/openquant/src/cla.rs:546–549  ·  view source on GitHub ↗
(cov: &DMatrix<f64>, w: &[f64])

Source from the content-addressed store, hash-verified

544}
545
546fn quad_risk(cov: &DMatrix<f64>, w: &[f64]) -> f64 {
547 let wv = DVector::from_vec(w.to_vec());
548 (wv.transpose() * cov * wv)[(0, 0)]
549}

Callers 1

allocateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected