MCPcopy Create free account
hub / github.com/douchuan/algorithm / dot

Function dot

tests/test_sparse_vec.rs:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6#[test]
7fn dot() {
8 let (a, b) = create();
9 assert_relative_eq!(a.dot(&b).unwrap(), 0.3);
10}
11
12#[test]
13fn magnitude() {

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected