Vector Operations
This is a collection of vector operations for Rust.
Usage
To use this crate, add the following to your Cargo.toml
file:
[]
= "0.1.0"
Then, add this to your crate root:
use *;
Examples
Addition
let a = vec!;
let b = vec!;
let c = add;
assert_eq!;
Subtraction
let a = vec!;
let b = vec!;
let c = sub;
assert_eq!;
Scaling
let a = vec!;
let b = 2;
let c = scale;
assert_eq!;
Matrix-Vector Multiplication
let a = vec!;
let b = vec!;
let c = mat_vec_mul;
assert_eq!;