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

Method At

bench/vector/mini/vector_test.go:36–47  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

34
35func (a ArrayStruct) Len() int { return 3 }
36func (a ArrayStruct) At(i int) float32 {
37 switch i {
38 case 0:
39 return a._0
40 case 1:
41 return a._1
42 case 2:
43 return a._2
44 default:
45 return 0 // panic("")
46 }
47}
48func (a *ArrayStruct) Set(i int, v float32) {
49 switch i {
50 case 0:

Callers 3

AddMethod · 0.95
Add3Method · 0.95
Cosmic2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected