Function engram::linalg::dot

source ·
pub fn dot(a: &[f64], b: &[f64]) -> f64
Expand description

Dot product of two vectors.

§Examples

let a = [1.0, 2.0, 3.0];
let b = [1.0, 2.0, 3.0];