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; }
public NDOffsetIncrementorAutoresetting(Shape shape) { this.shape = shape; incr = new ValueCoordinatesIncrementor(shape.dimensions, (ref ValueCoordinatesIncrementor incrementor) => incrementor.Reset()); index = incr.Index; }