MCPcopy Create free account
hub / github.com/andeya/algorithm / TestDotProduct

Function TestDotProduct

vector/vector_test.go:262–289  ·  view source on GitHub ↗

Uses vectors with known angles to calculate their DotProduct, then verifies if the result is correct.

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

NewFunction · 0.70
DotProductFunction · 0.70
SetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected