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

Function dot

crates/openquant/src/cla.rs:542–544  ·  view source on GitHub ↗
(a: &[f64], b: &[f64])

Source from the content-addressed store, hash-verified

540}
541
542fn dot(a: &[f64], b: &[f64]) -> f64 {
543 a.iter().zip(b.iter()).map(|(x, y)| x * y).sum()
544}
545
546fn quad_risk(cov: &DMatrix<f64>, w: &[f64]) -> f64 {
547 let wv = DVector::from_vec(w.to_vec());

Callers 2

allocateMethod · 0.70
_purge_excessMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected