Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
type
ArrayStruct
struct
{ _0, _1, _2 float32 }
11
12
func
(a Struct) Add(b Struct) Struct {
return
Struct{a.X + b.X, a.Y + b.Y, a.Z + b.Z} }
13
func
(a Array) Add(b Array) Array {
14
r := Array{}
15
for
i, bv :=
range
b {
Callers
1
BenchmarkStruct
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected