Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 135 for S1 (0.07 sec)

  1. src/math/rand/rand_test.go

    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareUint32Slices(s1, s2 []uint32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // compareFloat32Slices returns the first index where the two slices
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. pkg/slices/slices_test.go

    			},
    			want: []*string{},
    		},
    		{
    			name: "slice with 1 element",
    			args: args[string]{
    				[]string{s1},
    			},
    			want: []*string{&s1},
    		},
    		{
    			name: "slice with many elements",
    			args: args[string]{
    				[]string{s1, s2, s3},
    			},
    			want: []*string{&s1, &s2, &s3},
    		},
    	}
    	intTests := []testCase[int]{
    		{
    			name: "empty slice",
    			args: args[int]{
    				[]int{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. src/encoding/json/encode_test.go

    		CaseName: Name("DominantField"),
    		// Both S1 and S2 have a field named X, but since S has an X field as
    		// well, it takes precedence over S1.X and S2.X.
    		makeInput: func() any {
    			type (
    				S1 struct{ x, X int }
    				S2 struct{ x, X int }
    				S  struct {
    					S1
    					S2
    					x, X int
    				}
    			)
    			return S{S1{1, 2}, S2{3, 4}, 5, 6}
    		},
    		want: `{"X":6}`,
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  4. src/runtime/rand.go

    	// http://simul.iro.umontreal.ca/testu01/tu01.html
    	t := (*[2]uint32)(unsafe.Pointer(&mp.cheaprand))
    	s1, s0 := t[0], t[1]
    	s1 ^= s1 << 17
    	s1 = s1 ^ s0 ^ s1>>7 ^ s0>>16
    	t[0], t[1] = s0, s1
    	return s0 + s1
    }
    
    // cheaprand64 is a non-cryptographic-quality 63-bit random generator
    // suitable for calling at very high frequency (such as during sampling decisions).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

    // * qn = quantized value for tensor n
    // * sn = scale for tensor n
    // * zn = zero point for tensor n
    //
    // r3 = r1 * r2
    //    = s1 (q1 - z1) * s2 (q2 - z2)
    //    = s1 s2 (q1 q2 - q1 z2 - q2 z1 + z1 z2)
    //
    // * z2 is zero, because it assumes symmetric quantization for the filter:
    //
    //    = s1 s2 (q1 q2 - q2 z1)
    //
    // In StableHLO text representation, the pattern is as the following
    // (simplified):
    //
    // ```
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. pkg/kube/multicluster/secretcontroller_test.go

    	c := buildTestController(t, false)
    	c.AddSecret("s0", "c0")
    	c.AddSecret("s1", "c1")
    	c.Run(stop)
    
    	// before sync
    	assert.EventuallyEqual(t, c.controller.ListRemoteClusters, []cluster.DebugInfo{
    		{ID: "config", SyncStatus: "syncing"},
    		{ID: "c0", SecretName: "istio-system/s0", SyncStatus: "syncing"},
    		{ID: "c1", SecretName: "istio-system/s1", SyncStatus: "syncing"},
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaReceiverValue.kt

        public val expression: KtExpression by validityAsserted(expression)
    
        /**
         * Whether safe navigation is used on this receiver. For example
         * ```
         * fun test(s1: String?, s2: String) {
         *   s1?.length // explicit receiver `s1` has `isSafeNavigation = true`
         *   s2.length // explicit receiver `s2` has `isSafeNavigation = false`
         * }
         * ```
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. test/codegen/memcombine.go

    	_ = b[2]
    	// arm64:`MOVH\sR[0-9]+,\s1\(R[0-9]+\)`,-`MOVB`
    	// 386:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// amd64:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// ppc64le:`MOVH\s`,-`MOVB`
    	// ppc64:`MOVHBR`,-`MOVB`
    	b[1], b[2] = byte(val), byte(val>>8)
    }
    
    func store_le_byte_2_inv(b []byte, val uint16) {
    	_ = b[2]
    	// 386:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// amd64:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            "s1"                  | { property().tap { add("s1") } }               || "$collectionName(class ${String.name}, [s1])"
            "[s1, s2]"            | { property().value(["s1, s2"]) }               || "$collectionName(class ${String.name}, [s1, s2])"
            "s1 + s2"             | { property().tap { add("s1"); add("s2") } }    || "$collectionName(class ${String.name}, [s1] + [s2])"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/decls1.go

    	s11 = &v
    	s12 = -(u + *t11) / *&v
    	s13 = a /* ERROR "shifted operand" */ << d
    	s14 = i << j
    	s18 = math.Pi * 10.0
    	s19 = s1 /* ERROR "cannot call" */ ()
     	s20 = f0 /* ERROR "no value" */ ()
    	s21 = f6(1, s1, i)
    	s22 = f6(1, s1, uu /* ERRORx `cannot use .* in argument` */ )
    
    	t1 int = i + j
    	t2 int = i /* ERROR "mismatched types" */ + x
    	t3 int = c /* ERRORx `cannot use .* variable declaration` */ + d
    	t4 string = s + t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top