Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for powerSet (0.14 sec)

  1. guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

    import java.util.Set;
    
    /**
     * Very simple powerSet iteration benchmark.
     *
     * @author Kevin Bourrillion
     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
        Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers());
        powerSet = Sets.powerSet(set);
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Set<Integer>> powerSet = powerSet(elements);
        assertEquals(1, powerSet.size());
        assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet);
        assertEquals(0, powerSet.hashCode());
      }
    
      public void testPowerSetContents() {
        ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3);
        Set<Set<Integer>> powerSet = powerSet(elements);
        assertEquals(8, powerSet.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

    import java.util.Set;
    
    /**
     * Very simple powerSet iteration benchmark.
     *
     * @author Kevin Bourrillion
     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
        Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers());
        powerSet = Sets.powerSet(set);
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

            return inputSet.keySet().containsAll(set);
          }
          return false;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof PowerSet) {
            PowerSet<?> that = (PowerSet<?>) obj;
            return inputSet.keySet().equals(that.inputSet.keySet());
          }
          return super.equals(obj);
        }
    
        @Override
        public int hashCode() {
          /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      public void testContainsAll() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      public void testContainsAll() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

                Range.closed(4, 6),
                Range.closedOpen(1, 3),
                Range.openClosed(5, 7),
                Range.open(3, 4));
        subsets:
        for (Set<Range<Integer>> subset : Sets.powerSet(ranges)) {
          assertEquals(TreeRangeSet.create(subset), ImmutableRangeSet.unionOf(subset));
    
          RangeSet<Integer> mutable = TreeRangeSet.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. .zenodo.json

        "license": "Apache-2.0",
        "title": "TensorFlow",
        "upload_type": "software",
        "creators": [
            {
                "name": "TensorFlow Developers"
            }
        ],
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue May 18 19:19:25 UTC 2021
    - 741 bytes
    - Viewed (0)
  9. docs/security/security_providers.md

    Security Providers
    ==================
    
    ## Provider Status
    
    | Provider         | HTTP/2  | TLSv1.3      | Powered By      | Notes                                                        |
    | :--------------- | :------ | :----------- | :-------------- | :----------------------------------------------------------- |
    | JVM default      | Java 9+ | Java 11+     | [OpenJDK]       |                                                              |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  10. README.md

    - [Português (Brazilian Portuguese)](docs/pt-BR/README.md)
    - [Français (French)](docs/fr/README.md)
    - [Deutsch (German)](docs/de/README.md)
    - [한국어 (Korean)](docs/ko/README.md)
    
    ## Powered By
    
    * [Lasta Di](https://github.com/lastaflute/lasta-di "Lasta Di"): DI Container
    * [LastaFlute](https://github.com/lastaflute/lastaflute "LastaFlute"): Web Framework
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 07:19:47 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top