Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for factorial (0.25 sec)

  1. android/guava/src/com/google/common/math/IntMath.java

       *
       * @throws IllegalArgumentException if {@code n < 0}
       */
      public static int factorial(int n) {
        checkNonNegative("n", n);
        return (n < factorials.length) ? factorials[n] : Integer.MAX_VALUE;
      }
    
      private static final int[] factorials = {
        1,
        1,
        1 * 2,
        1 * 2 * 3,
        1 * 2 * 3 * 4,
        1 * 2 * 3 * 4 * 5,
        1 * 2 * 3 * 4 * 5 * 6,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

        final ImmutableList<E> inputList;
    
        PermutationCollection(ImmutableList<E> input) {
          this.inputList = input;
        }
    
        @Override
        public int size() {
          return IntMath.factorial(inputList.size());
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Iterator<List<E>> iterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

        final ImmutableList<E> inputList;
    
        PermutationCollection(ImmutableList<E> input) {
          this.inputList = input;
        }
    
        @Override
        public int size() {
          return IntMath.factorial(inputList.size());
        }
    
        @Override
        public boolean isEmpty() {
          return false;
        }
    
        @Override
        public Iterator<List<E>> iterator() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

       *
       * @throws IllegalArgumentException if {@code n < 0}
       */
      @GwtIncompatible // TODO
      public static long factorial(int n) {
        checkNonNegative("n", n);
        return (n < factorials.length) ? factorials[n] : Long.MAX_VALUE;
      }
    
      static final long[] factorials = {
        1L,
        1L,
        1L * 2,
        1L * 2 * 3,
        1L * 2 * 3 * 4,
        1L * 2 * 3 * 4 * 5,
        1L * 2 * 3 * 4 * 5 * 6,
    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. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        if (cls.isEnum()) {
          return;
        }
        List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls)));
        if (factories.isEmpty()) {
          return;
        }
        int numberOfParameters = factories.get(0).getParameters().size();
        List<ParameterNotInstantiableException> paramErrors = Lists.newArrayList();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        if (cls.isEnum()) {
          return;
        }
        List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls)));
        if (factories.isEmpty()) {
          return;
        }
        int numberOfParameters = factories.get(0).getParameters().size();
        List<ParameterNotInstantiableException> paramErrors = Lists.newArrayList();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

        @Test
        void testMetadataGeneratorFactory() throws ComponentLookupException {
            List<MetadataGeneratorFactory> factories = plexusContainer.lookupList(MetadataGeneratorFactory.class);
            assertNotNull(factories);
            factories.forEach(f -> System.out.println(f.getClass().getName()));
            assertEquals(3, factories.size());
        }
    
        @Test
        void testProjectDependencies() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 9.9K bytes
    - Viewed (2)
  8. tensorflow/c/eager/c_api_unified_experimental.cc

          "' (available: ");
      // Ensure deterministic (sorted) order in the error message
      std::set<string> factories_sorted;
      for (const auto& factory : GetFactories())
        factories_sorted.insert(factory.first);
      const char* comma = "";
      for (const string& factory : factories_sorted) {
        msg += comma + factory;
        comma = ", ";
      }
      msg += ")";
    
      return errors::InvalidArgument(msg.c_str());
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import java.lang.Thread.UncaughtExceptionHandler;
    import java.util.Locale;
    
    /**
     * Factories for {@link UncaughtExceptionHandler} instances.
     *
     * @author Gregory Kick
     * @since 8.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class UncaughtExceptionHandlers {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        // Sockets on some platforms can have large buffers that mean writes do not block when
        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(getDefault()) {
            @Throws(SocketException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top