Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Ord (0.03 sec)

  1. pkg/controller/statefulset/stateful_set_test.go

    			return err
    		}
    		ord := len(pods) - 1
    		if pods, err = om.setPodPending(set, ord); err != nil {
    			return err
    		}
    		pod := getPodAtOrdinal(pods, ord)
    		ssc.addPod(logger, pod)
    		fakeWorker(ssc)
    		pod = getPodAtOrdinal(pods, ord)
    		prev := *pod
    		if pods, err = om.setPodRunning(set, ord); err != nil {
    			return err
    		}
    		pod = getPodAtOrdinal(pods, ord)
    		ssc.updatePod(logger, &prev, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set_control.go

    			condemned = append(condemned, pod)
    		}
    		// If the ordinal could not be parsed (ord < 0), ignore the Pod.
    	}
    
    	// for any empty indices in the sequence [0,set.Spec.Replicas) create a new Pod at the correct revision
    	for ord := getStartOrdinal(set); ord <= getEndOrdinal(set); ord++ {
    		replicaIdx := ord - getStartOrdinal(set)
    		if replicas[replicaIdx] == nil {
    			replicas[replicaIdx] = newVersionedStatefulSetPod(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:03:46 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256_asm.go

    // p256OrdElement is a P-256 scalar field element in [0, ord(G)-1] in the
    // Montgomery domain (with R 2²⁵⁶) as four uint64 limbs in little-endian order.
    type p256OrdElement [4]uint64
    
    // p256OrdReduce ensures s is in the range [0, ord(G)-1].
    func p256OrdReduce(s *p256OrdElement) {
    	// Since 2 * ord(G) > 2²⁵⁶, we can just conditionally subtract ord(G),
    	// keeping the result if it doesn't underflow.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/crypto/ecdh/ecdh_test.go

    		k, err := curve.GenerateKey(r)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		// GenerateKey does rejection sampling. If the masking works correctly,
    		// the probability of a rejection is 1-ord(G)/2^ceil(log2(ord(G))),
    		// which for all curves is small enough (at most 2^-32, for P-256) that
    		// a bit flip is more likely to make this test fail than bad luck.
    		// Account for the extra MaybeReadByte byte, too.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 18K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/path-params-numeric-validations.md

    Передайте `*` в качестве первого параметра функции.
    
    Python не будет ничего делать с `*`, но он будет знать, что все следующие параметры являются именованными аргументами (парами ключ-значение), также известными как <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>, даже если у них нет значений по умолчанию.
    
    ```Python hl_lines="7"
    {!../../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ### Лучше с `Annotated`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="7"
    {!../../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 17:59:29 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/runtime/map_test.go

    			}
    			// Check that iterating over the map produces at least two different orderings.
    			ord := func() []int {
    				var s []int
    				for key := range m {
    					s = append(s, key)
    				}
    				return s
    			}
    			first := ord()
    			ok := false
    			for try := 0; try < 100; try++ {
    				if !reflect.DeepEqual(first, ord()) {
    					ok = true
    					break
    				}
    			}
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. src/math/big/float.go

    		y.validate()
    	}
    
    	mx := x.ord()
    	my := y.ord()
    	switch {
    	case mx < my:
    		return -1
    	case mx > my:
    		return +1
    	}
    	// mx == my
    
    	// only if |mx| == 1 we have to compare the mantissae
    	switch mx {
    	case -1:
    		return y.ucmp(x)
    	case +1:
    		return x.ucmp(y)
    	}
    
    	return 0
    }
    
    // ord classifies x and returns:
    //
    //	-2 if -Inf == x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top