- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 70 for factories (0.12 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java
} @Benchmark int factorial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += IntMath.factorial(factorial[j]); } return tmp; } @Benchmark int binomial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += IntMath.binomial(factorial[j], binomial[j]); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 3.3K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java
} @Benchmark int factorial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += IntMath.factorial(factorial[j]); } return tmp; } @Benchmark int binomial(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += IntMath.binomial(factorial[j], binomial[j]); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 3.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
double actual = BigIntegerMath.factorial(i).doubleValue(); double result = DoubleMath.factorial(i); assertThat(result).isWithin(Math.ulp(actual)).of(actual); } } public void testFactorialTooHigh() { assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)).isPositiveInfinity(); assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)).isPositiveInfinity(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
} // Depends on the correctness of BigIntegerMath.factorial private static void runBinomialTest(int firstN, int lastN) { for (int n = firstN; n <= lastN; n++) { for (int k = 0; k <= n; k++) { BigInteger expected = BigIntegerMath.factorial(n) .divide(BigIntegerMath.factorial(k)) .divide(BigIntegerMath.factorial(n - k));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:51:56 GMT 2026 - 27.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
double actual = BigIntegerMath.factorial(i).doubleValue(); double result = DoubleMath.factorial(i); assertThat(result).isWithin(Math.ulp(actual)).of(actual); } } public void testFactorialTooHigh() { assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)).isPositiveInfinity(); assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)).isPositiveInfinity(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Platform.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.jspecify.annotations.Nullable; /** Methods factored out so that they can be emulated differently in GWT. */ @GwtCompatible final class Platform { static boolean isInstanceOfThrowableClass( @Nullable Throwable t, Class<? extends Throwable> expectedClass) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.jspecify.annotations.NullMarked; /** * Methods factored out so that they can be emulated differently in GWT. * * @author Chris Povirk */ @GwtCompatible @NullMarked final class Platform { /** Serializes and deserializes the specified object. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 1.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/Platform.java
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.jspecify.annotations.NullMarked; /** * Methods factored out so that they can be emulated differently in GWT. * * @author Chris Povirk */ @GwtCompatible @NullMarked final class Platform { /** Serializes and deserializes the specified object. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 1.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeoutException; import org.jspecify.annotations.Nullable; /** Methods factored out so that they can be emulated differently in GWT. */ @GwtCompatible final class TestPlatform { static void verifyGetOnPendingFuture(Future<?> future) { checkNotNull(future); try {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/Platform.java
* limitations under the License. */ package com.google.common.testing; import static com.google.common.base.Preconditions.checkNotNull; /** * Methods factored out so that they can be emulated differently in GWT. * * @author Chris Povirk */ final class Platform { /** Serializes and deserializes the specified object (a no-op under GWT). */ @SuppressWarnings("unchecked")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1K bytes - Click Count (0)