Exemple #1
0
 public NDOffsetIncrementor(Shape shape)
 {
     this.shape = shape;
     incr       = new ValueCoordinatesIncrementor(shape.dimensions);
     index      = incr.Index;
     hasNext    = true;
 }
 public ValueOffsetIncrementor(Shape shape)
 {
     this._shape = shape;
     _incr       = new ValueCoordinatesIncrementor(shape.dimensions);
     _index      = _incr.Index;
     _hasNext    = true;
 }
Exemple #3
0
 public NDOffsetIncrementorAutoresetting(Shape shape)
 {
     this.shape = shape;
     incr       = new ValueCoordinatesIncrementor(shape.dimensions, (ref ValueCoordinatesIncrementor incrementor) => incrementor.Reset());
     index      = incr.Index;
 }