Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for SHUFFLE (0.12 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryPublishingIntegrationTest.groovy

                        implementation project(':shuffle')
                    }
                }
                project(':shuffle') {
                    library.baseName = 'card_shuffle'
                }
    """
            app.deck.writeToProject(file('deck'))
            app.card.writeToProject(file('card'))
            app.shuffle.writeToProject(file('shuffle'))
    
            when:
            run('publish')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

            app.shuffle.writeToProject(file("shuffle"))
            app.main.writeToProject(file("app"))
    
            expect:
            succeeds ":app:assemble"
    
            result.assertTasksExecuted([':card', ':deck', ':shuffle'].collect { tasks(it).debug.allToLink }, tasks(':app').debug.allToInstall, ":app:assemble")
            sharedLibrary("deck/build/lib/main/debug/deck").assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  3. src/math/rand/v2/rand.go

    	for i := range p {
    		p[i] = i
    	}
    	r.Shuffle(len(p), func(i, j int) { p[i], p[j] = p[j], p[i] })
    	return p
    }
    
    // Shuffle pseudo-randomizes the order of elements.
    // n is the number of elements. Shuffle panics if n < 0.
    // swap swaps the elements with indexes i and j.
    func (r *Rand) Shuffle(n int, swap func(i, j int)) {
    	if n < 0 {
    		panic("invalid argument to Shuffle")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

        return {0, 3, 1, 2};
      } else if (from == "NCHW" && to == "NHWC") {
        return {0, 2, 3, 1};
      } else {
        return {};
      }
    }
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    // `inner_size` allows to shuffle array attributes created from rank 2 tensors
    // on outer dimension only.
    ArrayAttr ShuffleArrayAttr(ArrayAttr attr, ArrayRef<int64_t> permutation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/crypto/sha1/sha1block_386.s

    	MIX(a, b, c, d, e, 0x5A827999)
    
    #define ROUND1x(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC1(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x5A827999)
    
    #define ROUND2(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC2(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x6ED9EBA1)
    
    #define ROUND3(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC3(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x8F1BBCDC)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/math/rand/rand.go

    		m[i] = m[j]
    		m[j] = i
    	}
    	return m
    }
    
    // Shuffle pseudo-randomizes the order of elements.
    // n is the number of elements. Shuffle panics if n < 0.
    // swap swaps the elements with indexes i and j.
    func (r *Rand) Shuffle(n int, swap func(i, j int)) {
    	if n < 0 {
    		panic("invalid argument to Shuffle")
    	}
    
    	// Fisher-Yates shuffle: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. src/crypto/sha1/sha1block_arm.s

    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND1x(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC1(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND2(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC2(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND3(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC3(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/math/rand/rand_test.go

    	if !bytes.Equal(b1, b2) {
    		t.Errorf("mismatch after re-seed:\n%x\n%x", b1, b2)
    	}
    }
    
    func TestShuffleSmall(t *testing.T) {
    	// Check that Shuffle allows n=0 and n=1, but that swap is never called for them.
    	r := New(NewSource(1))
    	for n := 0; n <= 1; n++ {
    		r.Shuffle(n, func(i, j int) { t.Fatalf("swap called, n=%d i=%d j=%d", n, i, j) })
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. src/math/rand/v2/rand_test.go

    			p := make([]int, n) // re-usable slice for Shuffle generator
    			tests := [...]struct {
    				name string
    				fn   func() int
    			}{
    				{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
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. cmd/erasure-metadata-utils.go

    	}
    	shuffledPartsMetadata = make([]FileInfo, len(partsMetadata))
    	// Shuffle slice xl metadata for expected distribution.
    	for index := range partsMetadata {
    		blockIndex := distribution[index]
    		shuffledPartsMetadata[blockIndex-1] = partsMetadata[index]
    	}
    	return shuffledPartsMetadata
    }
    
    // shuffleDisks - shuffle input disks slice depending on the
    // erasure distribution. Return shuffled slice of disks with
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top