MCPcopy Index your code
hub / github.com/andeya/algorithm / TestScale

Function TestScale

vector/vector_test.go:215–242  ·  view source on GitHub ↗

Creates pseudo-random vectors, does scalar multiplication with pseudo-random floats, then checks if the result is correct. It checks both the in-place and the non-destructive version.

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

makeRandomVectorFunction · 0.85
ScaleFunction · 0.70
CopyMethod · 0.65
ScaleMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected