Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Indexes (0.2 sec)

  1. src/slices/iter.go

    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    	}
    }
    
    // Backward returns an iterator over index-value pairs in the slice,
    // traversing it backward. The indexes range from len(s)-1 down to 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/3-iter.md

    The new [iter] package provides the basic definitions for working with
    user-defined iterators.
    
    The [slices] package adds several functions that work with iterators:
    - [All](/pkg/slices#All) returns an iterator over slice indexes and values.
    - [Values](/pkg/slices#Values) returns an iterator over slice elements.
    - [Backward](/pkg/slices#Backward) returns an iterator that loops over
      a slice backward.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_histogram.h

      std::optional<CalibrationStatistics> GetStatistics() const override;
    
     private:
      // Expands the histogram so the lower_bound and upper_bound can fit in the
      // histogram. Returns the indexes associated to those values.
      std::pair<int32_t, int32_t> ExpandHistogramIfNeeded(float lower_bound,
                                                          float upper_bound);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/compress/bzip2/huffman.go

    	nodes    []huffmanNode
    	nextNode int
    }
    
    // A huffmanNode is a node in the tree. left and right contain indexes into the
    // nodes slice of the tree. If left or right is invalidNodeValue then the child
    // is a left node and its value is in leftValue/rightValue.
    //
    // The symbols are uint16s because bzip2 encodes not only MTF indexes in the
    // tree, but also two magic values for run-length encoding and an EOF symbol.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    //
    //	fmt.Printf("%d") // fmt.Printf format reads arg 1, but call has 0 args
    //
    // nor too many:
    //
    //	fmt.Printf("%d", 1, 2) // fmt.Printf call needs 1 arg, but has 2 args
    //
    // Explicit argument indexes must be no greater than the number of
    // arguments:
    //
    //	fmt.Printf("%[3]d", 1, 2) // fmt.Printf call has invalid argument index 3
    //
    // The checker also uses a heuristic to report calls to Print-like
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. cmd/metacache-bucket.go

    )
    
    // a bucketMetacache keeps track of all caches generated
    // for a bucket.
    type bucketMetacache struct {
    	// Name of bucket
    	bucket string
    
    	// caches indexed by id.
    	caches map[string]metacache
    	// cache ids indexed by root paths
    	cachesRoot map[string][]string `msg:"-"`
    
    	// Internal state
    	mu      sync.RWMutex `msg:"-"`
    	updated bool         `msg:"-"`
    }
    
    type deleteAllStorager interface {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. cmd/storage-interface.go

    	// Read all.
    	ReadAll(ctx context.Context, volume string, path string) (buf []byte, err error)
    	GetDiskLoc() (poolIdx, setIdx, diskIdx int) // Retrieve location indexes.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/sha3/sha3.go

    // Size returns the output size of the hash function in bytes.
    func (d *state) Size() int { return d.outputLen }
    
    // Reset clears the internal state by zeroing the sponge state and
    // the buffer indexes, and setting Sponge.state to absorbing.
    func (d *state) Reset() {
    	// Zero the permutation's state.
    	for i := range d.a {
    		d.a[i] = 0
    	}
    	d.state = spongeAbsorbing
    	d.i, d.n = 0, 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/list_work_estimator.go

    		limit = listOptions.Limit
    	}
    
    	var estimatedObjectsToBeProcessed int64
    
    	switch {
    	case isListFromCache:
    		// TODO: For resources that implement indexes at the watchcache level,
    		//  we need to adjust the cost accordingly
    		estimatedObjectsToBeProcessed = numStored
    	case listOptions.FieldSelector != "" || listOptions.LabelSelector != "":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. docs/en/mkdocs.yml

        primary: teal
        accent: amber
        toggle:
          icon: material/lightbulb-outline
          name: Switch to light mode
      features:
      - search.suggest
      - search.highlight
      - content.tabs.link
      - navigation.indexes
      - content.tooltips
      - navigation.path
      - content.code.annotate
      - content.code.copy
      - content.code.select
      - navigation.tabs
      icon:
        repo: fontawesome/brands/github-alt
      logo: img/icon-white.svg
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 02 22:37:31 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top