Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Files

Latest commit

ce157d8 · Jan 30, 2020

History

History
This branch is 15 commits ahead of mikkyang/rust-blas:master.

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 30, 2020
Jan 30, 2020
extern crate rust_blas;
use rust_blas as blas;

use blas::Dot;

fn main() {
    let x = vec![1.0, -2.0, 3.0, 4.0];
    let y = [1.0, 1.0, 1.0, 1.0, 7.0];

    let d = Dot::dot(&x, &y[..x.len()]);
    assert_eq!(d, 6.0);
}