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

Method Add

bench/vector/mini/vector_test.go:12–12  ·  view source on GitHub ↗
(b Struct)

Source from the content-addressed store, hash-verified

10type ArrayStruct struct{ _0, _1, _2 float32 }
11
12func (a Struct) Add(b Struct) Struct { return Struct{a.X + b.X, a.Y + b.Y, a.Z + b.Z} }
13func (a Array) Add(b Array) Array {
14 r := Array{}
15 for i, bv := range b {

Callers 1

BenchmarkStructFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected