Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for permutation (0.2 sec)

  1. src/runtime/map_benchmark_test.go

    				m[i] = true
    			}
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				_ = m[n-1]
    			}
    		})
    	}
    }
    
    func BenchmarkMapCycle(b *testing.B) {
    	// Arrange map entries to be a permutation, so that
    	// we hit all entries, and one lookup is data dependent
    	// on the previous lookup.
    	const N = 3127
    	p := rand.New(rand.NewSource(1)).Perm(N)
    	m := map[int]int{}
    	for i := 0; i < N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    	for i, src := range sources {
    		orig[i] = mustParse(src)
    	}
    
    	// run the test for all order permutations of the incoming files
    	for _, perm := range [][len(sources)]int{
    		{0, 1, 2},
    		{0, 2, 1},
    		{1, 0, 2},
    		{1, 2, 0},
    		{2, 0, 1},
    		{2, 1, 0},
    	} {
    		// create file order permutation
    		files := make([]*syntax.File, len(sources))
    		for i := range perm {
    			files[i] = orig[perm[i]]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/go/types/issues_test.go

    	for i, src := range sources {
    		orig[i] = mustParse(fset, src)
    	}
    
    	// run the test for all order permutations of the incoming files
    	for _, perm := range [][len(sources)]int{
    		{0, 1, 2},
    		{0, 2, 1},
    		{1, 0, 2},
    		{1, 2, 0},
    		{2, 0, 1},
    		{2, 1, 0},
    	} {
    		// create file order permutation
    		files := make([]*ast.File, len(sources))
    		for i := range perm {
    			files[i] = orig[perm[i]]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/keccakf.go

    	0x8000000000000080,
    	0x000000000000800A,
    	0x800000008000000A,
    	0x8000000080008081,
    	0x8000000000008080,
    	0x0000000080000001,
    	0x8000000080008008,
    }
    
    // keccakF1600 applies the Keccak permutation to a 1600b-wide
    // state represented as a slice of 25 uint64s.
    func keccakF1600(a *[25]uint64) {
    	// Implementation translated from Keccak-inplace.c
    	// in the keccak reference code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        // Create a 1D I32 tensor for representing the dimension permutation.
        auto permuation_tensor_type =
            RankedTensorType::get({input_rank}, rewriter.getIntegerType(32));
        llvm::SmallVector<Attribute, 4> permute;
        permute.reserve(input_rank);
        // First create an identity permutation tensor.
        for (int i = 0; i < input_rank; i++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/alignment/ForcingPlatformAlignmentTest.groovy

                                version(v) {
                                    // Not interested in the actual interactions, especially with
                                    // the complexity introduced by permutation testing
                                    allowAll()
                                }
                            }
                        }
                    }
                }
    
                extraSpec.delegate = delegate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

          if (perm_type.getNumElements() != input_type.getRank()) {
            return transpose_op.emitOpError(
                "perm tensor elements size is not equal to input tensor rank");
          }
        }
    
        // Get permutation axes of the TransposeOp
        DenseIntElementsAttr perm;
        if (!matchPattern(transpose_op.getPerm(), m_Constant(&perm))) {
          return failure();
        }
    
        SmallVector<int64_t, 4> axes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  8. src/crypto/sha512/sha512block_ppc64x.s

    #define R_x110	R27
    
    
    // V0-V7 are A-H
    // V8-V23 are used for the message schedule
    #define KI	V24
    #define FUNC	V25
    #define S0	V26
    #define S1	V27
    #define s0	V28
    #define s1	V29
    #define LEMASK	V31	// Permutation control register for little endian
    
    // VPERM is needed on LE to switch the bytes
    
    #ifdef GOARCH_ppc64le
    #define VPERMLE(va,vb,vc,vt) VPERM va, vb, vc, vt
    #else
    #define VPERMLE(va,vb,vc,vt)
    #endif
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. src/math/rand/rand_test.go

    				{name: "int31n", fn: func() int { return int(Int31nForTest(r, int32(nfact))) }},
    				{name: "Perm", fn: func() int { return encodePerm(r.Perm(n)) }},
    				{name: "Shuffle", fn: func() int {
    					// Generate permutation using Shuffle.
    					for i := range p {
    						p[i] = i
    					}
    					r.Shuffle(n, func(i, j int) { p[i], p[j] = p[j], p[i] })
    					return encodePerm(p)
    				}},
    			}
    
    			for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. src/math/rand/v2/rand_test.go

    			}{
    				{name: "Int32N", fn: func() int { return int(r.Int32N(int32(nfact))) }},
    				{name: "Perm", fn: func() int { return encodePerm(r.Perm(n)) }},
    				{name: "Shuffle", fn: func() int {
    					// Generate permutation using Shuffle.
    					for i := range p {
    						p[i] = i
    					}
    					r.Shuffle(n, func(i, j int) { p[i], p[j] = p[j], p[i] })
    					return encodePerm(p)
    				}},
    			}
    
    			for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top