MCPcopy Create free account
hub / github.com/PacktPublishing/Learning-Go-Programming / New

Function New

ch12/vector/vec.go:28–30  ·  view source on GitHub ↗
(elems ...float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

BenchmarkVectorEqual1Function · 0.85
BenchmarkVectorEqual2Function · 0.85
BenchmarkVectorAddFunction · 0.85
BenchmarkVectorSubFunction · 0.85
BenchmarkVectorScaleFunction · 0.85
BenchmarkVectorMagFunction · 0.85
BenchmarkVectorUnitFunction · 0.85
BenchmarkVectorDotProdFunction · 0.85
BenchmarkVectorAngleFunction · 0.85
TestNewVectorFunction · 0.85
TestVectorStringFunction · 0.85
TestVectorEqualFunction · 0.85

Calls 1

SimpleVectorTypeAlias · 0.85

Tested by 15

BenchmarkVectorEqual1Function · 0.68
BenchmarkVectorEqual2Function · 0.68
BenchmarkVectorAddFunction · 0.68
BenchmarkVectorSubFunction · 0.68
BenchmarkVectorScaleFunction · 0.68
BenchmarkVectorMagFunction · 0.68
BenchmarkVectorUnitFunction · 0.68
BenchmarkVectorDotProdFunction · 0.68
BenchmarkVectorAngleFunction · 0.68
TestNewVectorFunction · 0.68
TestVectorStringFunction · 0.68
TestVectorEqualFunction · 0.68