Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for powers (0.06 sec)

  1. android/guava-tests/test/com/google/common/math/MathTesting.java

      static {
        ImmutableSet.Builder<Integer> intValues = ImmutableSet.builder();
        // Add boundary values manually to avoid over/under flow (this covers 2^N for 0 and 31).
        intValues.add(Integer.MAX_VALUE - 1, Integer.MAX_VALUE);
        // Add values up to 40. This covers cases like "square of a prime" and such.
        for (int i = 1; i <= 40; i++) {
          intValues.add(i);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/LongMath.java

      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
       * {@code checkedPow(2, log2(x, CEILING))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @throws ArithmeticException of the next-higher power of two is not representable as a {@code
       *     long}, i.e. when {@code x > 2^62}
       * @since 20.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       * @return the power set, as an immutable set of immutable sets
       * @throws IllegalArgumentException if {@code set} has more than 30 unique elements (causing the
       *     power set size to exceed the {@code int} range)
       * @throws NullPointerException if {@code set} is or contains {@code null}
       * @see <a href="http://en.wikipedia.org/wiki/Power_set">Power set article at Wikipedia</a>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

     * {@link LongMath} respectively.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    public final class BigIntegerMath {
      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
       * {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSet.java

        SetBuilderImpl<E> copy() {
          return this;
        }
    
        @Override
        ImmutableSet<E> build() {
          return ImmutableSet.of();
        }
      }
    
      // We use power-of-2 tables, and this is the highest int that's a power of 2
      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  6. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/BigDecimalMath.java

       * the least significant bit zero is chosen. (In such cases, both of the nearest representable
       * values are even integers; this method returns the one that is a multiple of a greater power of
       * two.)
       *
       * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
       *     is not precisely representable as a {@code double}
       * @since 30.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ingest/Ingester.java

     * extract additional metadata, or perform other transformations during the
     * indexing process.
     *
     * Ingesters are processed in priority order, with lower numbers having higher priority.
     */
    public abstract class Ingester {
    
        /** Priority of this ingester (lower numbers = higher priority) */
        protected int priority = 99;
    
        /**
         * Default constructor.
         */
        public Ingester() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      /* Relies on the correctness of isPowerOfTwo(long). */
      public void testLog2Exact() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          // We only expect an exception if x was not a power of 2.
          boolean isPowerOf2 = LongMath.isPowerOfTwo(x);
          try {
            assertEquals(x, 1L << LongMath.log2(x, UNNECESSARY));
            assertTrue(isPowerOf2);
          } catch (ArithmeticException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/BigDecimalMath.java

       * the least significant bit zero is chosen. (In such cases, both of the nearest representable
       * values are even integers; this method returns the one that is a multiple of a greater power of
       * two.)
       *
       * @throws ArithmeticException if {@code mode} is {@link RoundingMode#UNNECESSARY} and {@code x}
       *     is not precisely representable as a {@code double}
       * @since 30.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top