Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for SHUFFLE (0.11 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppAppWithLibrariesWithApiDependencies.groovy

    #define EXPORT_FUNC
    #endif
    
    class EXPORT_FUNC Deck {
        Card card;
    public:
        void shuffle();
        Card& draw();
    };
    """))
            final SourceFileElement source = ofFile(new SourceFile("cpp", "deck.cpp", """
    #include "deck.h"
    #include "shuffle.h"
    
    void Deck::shuffle() {
        ShuffleAlgorithm shuffler;
        shuffler.shuffle();
    }
    
    Card& Deck::draw() {
        return card;
    }
    """))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppStaticLibraryPublishingIntegrationTest.groovy

                    dependencies {
                        api project(':card')
                        implementation project(':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: Thu Nov 16 20:20:03 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    	BNE loop
    
    	// decrement length
    	ADD $-256, R4
    
    	// rearrange vectors
    	SHUFFLE(X0, X1, X2, X3, M0, M1, M2, M3)
    	ADDV(J0, X0, X1, X2, X3)
    	SHUFFLE(X4, X5, X6, X7, M0, M1, M2, M3)
    	ADDV(KEY0, X4, X5, X6, X7)
    	SHUFFLE(X8, X9, X10, X11, M0, M1, M2, M3)
    	ADDV(KEY1, X8, X9, X10, X11)
    	VAF CTR, X12, X12
    	SHUFFLE(X12, X13, X14, X15, M0, M1, M2, M3)
    	ADDV(NONCE, X12, X13, X14, X15)
    
    	// increment counters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. src/math/rand/v2/example_test.go

    	words := strings.Fields("ink runs from the corners of my mouth")
    	rand.Shuffle(len(words), func(i, j int) {
    		words[i], words[j] = words[j], words[i]
    	})
    	fmt.Println(words)
    }
    
    func ExampleShuffle_slicesInUnison() {
    	numbers := []byte("12345")
    	letters := []byte("ABCDE")
    	// Shuffle numbers, swapping corresponding entries in letters at the same time.
    	rand.Shuffle(len(numbers), func(i, j int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top