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

Method Set

bench/vector/mini/vector_test.go:48–59  ·  view source on GitHub ↗
(i int, v float32)

Source from the content-addressed store, hash-verified

46 }
47}
48func (a *ArrayStruct) Set(i int, v float32) {
49 switch i {
50 case 0:
51 a._0 = v
52 case 1:
53 a._1 = v
54 case 2:
55 a._2 = v
56 default:
57 // panic("")
58 }
59}
60
61func (a ArrayStruct) Add(b ArrayStruct) ArrayStruct {
62 r := ArrayStruct{}

Callers 2

AddMethod · 0.95
Add3Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected