Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
7
fn dot() {
8
let (a, b) = create();
9
assert_relative_eq!(a.dot(&b).unwrap(), 0.3);
10
}
11
12
#[test]
13
fn magnitude() {
Callers
nothing calls this directly
Calls
1
create
Function · 0.85
Tested by
no test coverage detected