Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for SHUFFLE (0.13 sec)

  1. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/XcodeMultipleCppProjectIntegrationTest.groovy

                    dependencies {
                        api project(':card')
                        implementation project(':shuffle')
                    }
                }
                project(':card') {
                    apply plugin: 'cpp-library'
                }
                project(':shuffle') {
                    apply plugin: 'cpp-library'
                }
            """
            app.deck.writeToProject(file("deck"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/go/internal/test/testflag.go

    	cf.String("fuzztime", "", "")
    	cf.String("fuzzminimizetime", "", "")
    	cf.StringVar(&testTrace, "trace", "", "")
    	cf.Var(&testV, "v", "")
    	cf.Var(&testShuffle, "shuffle", "")
    
    	for name, ok := range passFlagToTest {
    		if ok {
    			cf.Var(cf.Lookup(name).Value, "test."+name, "")
    		}
    	}
    }
    
    // outputdirFlag implements the -outputdir flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/internal/notsha256/sha256block_amd64.s

    	ADDQ $64, SI
    	CMPQ SI, 256(SP)
    	JB   loop
    
    end:
    	RET
    
    // shuffle byte order from LE to BE
    DATA flip_mask<>+0x00(SB)/8, $0x0405060700010203
    DATA flip_mask<>+0x08(SB)/8, $0x0c0d0e0f08090a0b
    DATA flip_mask<>+0x10(SB)/8, $0x0405060700010203
    DATA flip_mask<>+0x18(SB)/8, $0x0c0d0e0f08090a0b
    GLOBL flip_mask<>(SB), 8, $32
    
    // shuffle xBxA -> 00BA
    DATA shuff_00BA<>+0x00(SB)/8, $0x0b0a090803020100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top