MCPcopy Create free account
hub / github.com/egonelbre/exp / Add3

Method Add3

bench/vector/mini/vector_test.go:27–33  ·  view source on GitHub ↗
(b Array)

Source from the content-addressed store, hash-verified

25 return r
26}
27func (a Array) Add3(b Array) Array {
28 r := Array{}
29 r[0] = a[0] + b[0]
30 r[1] = a[1] + b[1]
31 r[2] = a[2] + b[2]
32 return r
33}
34
35func (a ArrayStruct) Len() int { return 3 }
36func (a ArrayStruct) At(i int) float32 {

Callers 1

BenchmarkArray3Function · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected