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

Function NewIterator

niterator/unrollinreverse/iterator.go:23–35  ·  view source on GitHub ↗
(ap *shape.AP)

Source from the content-addressed store, hash-verified

21}
22
23func NewIterator(ap *shape.AP) *Iterator {
24 track := [4]Index{}
25 for i := range ap.Shape {
26 track[3-i].Track = uint32(ap.Shape[i])
27 track[3-i].Shape = uint32(ap.Shape[i])
28 track[3-i].Stride = uint32(ap.Stride[i])
29 }
30
31 return &Iterator{
32 AP: ap,
33 Track: track,
34 }
35}
36
37func (it *Iterator) IsDone() bool {
38 return it.Done

Callers 2

TestUnrollInReverseFunction · 0.92
BenchmarkUnrollInReverseFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestUnrollInReverseFunction · 0.74
BenchmarkUnrollInReverseFunction · 0.74