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

Function NewIterator

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestOnearrRevSpecializeFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestOnearrRevSpecializeFunction · 0.74