MCPcopy Index your code
hub / github.com/douchuan/algorithm / create

Function create

tests/test_sparse_vec.rs:57–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57fn create() -> (SparseVector, SparseVector) {
58 let mut a = SparseVector::new(10);
59 let mut b = SparseVector::new(10);
60 a.put(3, 0.5);
61 a.put(9, 0.75);
62 a.put(6, 0.11);
63 a.put(6, 0.0);
64 b.put(3, 0.6);
65 b.put(4, 0.9);
66
67 (a, b)
68}

Callers 6

dotFunction · 0.85
magnitudeFunction · 0.85
scaleFunction · 0.85
plusFunction · 0.85
subFunction · 0.85
to_stringFunction · 0.85

Calls 1

putMethod · 0.45

Tested by

no test coverage detected