mazer-data-structures 0.1.0

A minimal, simple math markup language that compiles to HTML, written in Rust
Documentation
1
2
3
4
5
6
7
pub fn dot_product(a: Vec<f64>, b: Vec<f64>) -> f64 {
    let mut sum = 0.0;
    for i in 0..a.len() {
        sum += a[i] * b[i];
    }
    sum
}