Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Odivide (0.17 sec)

  1. guava-tests/test/com/google/common/collect/TablesTransformValuesRowTest.java

      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        Table<Character, String, Integer> table = HashBasedTable.create();
        table.put('a', "one", 2);
        table.put('a', "two", 4);
        table.put('a', "three", 6);
        table.put('b', "four", 8);
        return Tables.transformValues(table, TableCollectionTest.DIVIDE_BY_2).row('a');
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
              BigInteger expected =
                  new BigDecimal(p).divide(new BigDecimal(q), 0, mode).toBigIntegerExact();
              assertEquals(expected, BigIntegerMath.divide(p, q, mode));
            }
          }
        }
      }
    
      private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
              BigInteger expected =
                  new BigDecimal(p).divide(new BigDecimal(q), 0, mode).toBigIntegerExact();
              assertEquals(expected, BigIntegerMath.divide(p, q, mode));
            }
          }
        }
      }
    
      private static final BigInteger BAD_FOR_ANDROID_P = new BigInteger("-9223372036854775808");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

        a >>= aTwos; // divide out all 2s
        int bTwos = Long.numberOfTrailingZeros(b);
        b >>= bTwos; // divide out all 2s
        while (a != b) { // both a, b are odd
          // The key to the binary GCD algorithm is as follows:
          // Both a and b are odd. Assume a > b; then gcd(a - b, b) = gcd(a, b).
          // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

        }
    
        private double singleQuantileFromSorted(int index, int scale, double[] dataset) {
          long numerator = (long) index * (dataset.length - 1);
          int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - positionFloor * scale);
          if (remainder == 0) {
            return dataset[positionFloor];
          } else {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

        }
    
        private double singleQuantileFromSorted(int index, int scale, double[] dataset) {
          long numerator = (long) index * (dataset.length - 1);
          int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - positionFloor * scale);
          if (remainder == 0) {
            return dataset[positionFloor];
          } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

            new int[] {GREATEST - 1, GREATEST - 2, 1, 2});
      }
    
      public void testDivide() {
        for (long a : UNSIGNED_INTS) {
          for (long b : UNSIGNED_INTS) {
            try {
              assertThat(UnsignedInts.divide((int) a, (int) b)).isEqualTo((int) (a / b));
              assertThat(b).isNotEqualTo(0);
            } catch (ArithmeticException e) {
              assertThat(b).isEqualTo(0);
            }
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

       */
      public static <T extends @Nullable Object> Iterable<T> concat(
          Iterable<? extends Iterable<? extends T>> inputs) {
        return FluentIterable.concat(inputs);
      }
    
      /**
       * Divides an iterable into unmodifiable sublists of the given size (the final iterable may be
       * smaller). For example, partitioning an iterable containing {@code [a, b, c, d, e]} with a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/CollectorTester.java

      }
    
      /**
       * Verifies that the specified expected result is always produced by collecting the specified
       * inputs, regardless of how the elements are divided.
       */
      @SafeVarargs
      @CanIgnoreReturnValue
      @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/Quantiles.java

          // non-negative int, we can do long-arithmetic on index * (dataset.length - 1) / scale to get
          // a rounded ratio and a remainder which can be expressed as ints, without risk of overflow:
          int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN);
          int remainder = (int) (numerator - (long) quotient * scale);
          selectInPlace(quotient, dataset, 0, dataset.length - 1);
          if (remainder == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
Back to top