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

Function TestCrossProduct

vector/vector_test.go:327–366  ·  view source on GitHub ↗

Calculates the cross product of two pseudo-random vectors, then checks if the resulting vector is orthogonal to both the original vectors. Tests both in-place and non-destructive versions of the operation.

(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 9

makeRandomVectorFunction · 0.85
checkStruct · 0.85
CrossProductMethod · 0.80
DotProductFunction · 0.70
CrossProductFunction · 0.70
NewFunction · 0.70
CopyMethod · 0.65
AbsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected