Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,100 for ndarray (0.29 sec)

  1. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.toArray(bytes)).isEqualTo(array);
        assertThat(Doubles.toArray(shorts)).isEqualTo(array);
        assertThat(Doubles.toArray(ints)).isEqualTo(array);
        assertThat(Doubles.toArray(floats)).isEqualTo(array);
        assertThat(Doubles.toArray(longs)).isEqualTo(array);
        assertThat(Doubles.toArray(doubles)).isEqualTo(array);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.toArray(bytes)).isEqualTo(array);
        assertThat(Floats.toArray(shorts)).isEqualTo(array);
        assertThat(Floats.toArray(ints)).isEqualTo(array);
        assertThat(Floats.toArray(floats)).isEqualTo(array);
        assertThat(Floats.toArray(longs)).isEqualTo(array);
        assertThat(Floats.toArray(doubles)).isEqualTo(array);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.toArray(bytes)).isEqualTo(array);
        assertThat(Longs.toArray(shorts)).isEqualTo(array);
        assertThat(Longs.toArray(ints)).isEqualTo(array);
        assertThat(Longs.toArray(floats)).isEqualTo(array);
        assertThat(Longs.toArray(longs)).isEqualTo(array);
        assertThat(Longs.toArray(doubles)).isEqualTo(array);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsInOrder(getOrderedElements(), array);
      }
    
      public void testToArray_rightSizedArrayOfObject() {
        Object[] array = new Object[getNumElements()];
        assertSame(
            "toArray(sameSizeObject[]) should return the given array",
            array,
            collection.toArray(array));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

          assertThat(stats.count()).isEqualTo(stream(array).count());
          assertEquivalent(stats.mean(), stream(array).average().getAsDouble());
          assertEquivalent(stats.sum(), stream(array).sum());
          assertEquivalent(stats.max(), stream(array).max().getAsDouble());
          assertEquivalent(stats.min(), stream(array).min().getAsDouble());
          // static method on Stats vs on instance method on DoubleStream
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * to dump the queue into a newly allocated array of {@code String}:
       *
       * <pre>
       *     String[] y = x.toArray(new String[0]);</pre>
       *
       * <p>Note that {@code toArray(new Object[0])} is identical in function to {@code toArray()}.
       *
       * @param a the array into which the elements of the queue are to be stored, if it is big enough;
       *     otherwise, a new array of the same runtime type is allocated for this purpose
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/Types.java

          this.upperBounds = JavaVersion.CURRENT.usedInGenericType(upperBounds);
        }
    
        @Override
        public Type[] getLowerBounds() {
          return toArray(lowerBounds);
        }
    
        @Override
        public Type[] getUpperBounds() {
          return toArray(upperBounds);
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof WildcardType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

      public final Object[] toArray() {
        return toArray(EMPTY_ARRAY);
      }
    
      @CanIgnoreReturnValue
      @Override
      /*
       * This suppression is here for two reasons:
       *
       * 1. b/192354773 in our checker affects toArray declarations.
       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/stream/StreamUtilTest.java

                Object[] array = s.toArray();
                for (int i = 0; i < 2; i++) {
                    assertEquals(values[i], array[i]);
                }
            });
        }
    
        public void test_ofNull() {
            assertEquals(0, (int) StreamUtil.stream().get(s -> s.toArray().length));
            Object[] o = {};
            assertEquals(0, (int) StreamUtil.stream(o).get(s -> s.toArray().length));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            }
            final String[] oldArray = elementsText.get(fieldName);
            final String[] newArray;
            if (oldArray != null) {
                newArray = new String[oldArray.length + 1];
                System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);
                newArray[oldArray.length] = value;
            } else {
                newArray = new String[] { value };
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Oct 23 13:27:21 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top