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

Function NewIterator

niterator/specialize/iterator.go:23–34  ·  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[i].Shape = uint32(ap.Shape[i])
27 track[i].Stride = uint32(ap.Stride[i])
28 }
29
30 return &Iterator{
31 AP: ap,
32 Track: track,
33 }
34}
35
36func (it *Iterator) IsDone() bool {
37 return it.Done

Callers 2

TestSpecializeFunction · 0.92
BenchmarkSpecializeFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestSpecializeFunction · 0.74
BenchmarkSpecializeFunction · 0.74