Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,100 for ndarray (0.07 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                throws IntrospectionException {
            try {
                int index = Integer.parseInt(indexStr);
    
                if (value.getClass().isArray()) {
                    return Array.get(value, index);
                }
    
                if (value instanceof List) {
                    return ((List) value).get(index);
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            int i = 0;
            for (final Object element : collection) {
                Array.set(array, i++, element);
            }
    
            return array;
        }
    
        /**
         * Parses a sequence of XML elements and converts them to the appropriate bean type.
         *
         * @param parser The XML parser
         * @return Converted bean instance
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testVerifyMegaStreamHalves() {
        assertThat(
                concat(megaPrimitiveDoubleStreamPart1(), megaPrimitiveDoubleStreamPart2())
                    .sorted()
                    .toArray())
            .isEqualTo(megaPrimitiveDoubleStream().toArray());
      }
    
      public void testAddAllPrimitiveDoubleStream() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(megaPrimitiveDoubleStreamPart1());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.toArray(none)).isEqualTo(EMPTY);
    
        List<Boolean> one = Arrays.asList(false);
        assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE);
    
        boolean[] array = {false, false, true};
    
        List<Boolean> three = Arrays.asList(false, false, true);
        assertThat(Booleans.toArray(three)).isEqualTo(array);
    
        assertThat(Booleans.toArray(Booleans.asList(array))).isEqualTo(array);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          return standardRetainAll(collection);
        }
    
        @Override
        public Object[] toArray() {
          return standardToArray();
        }
    
        @Override
        public <T> T[] toArray(T[] array) {
          return standardToArray(array);
        }
    
        @Override
        public String toString() {
          return standardToString();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactLinkedHashMap.java

        class KeySetImpl extends KeySetView {
          @Override
          public @Nullable Object[] toArray() {
            return ObjectArrays.toArrayImpl(this);
          }
    
          @Override
          @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
          public <T extends @Nullable Object> T[] toArray(T[] a) {
            return ObjectArrays.toArrayImpl(this, a);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      @Override
      public @Nullable Object[] toArray() {
        if (needsAllocArrays()) {
          return new Object[0];
        }
        Set<E> delegate = delegateOrNull();
        return (delegate != null) ? delegate.toArray() : Arrays.copyOf(requireElements(), size);
      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        long[] dataset = Longs.toArray(SIXTEEN_SQUARES_LONGS);
        assertThat(Quantiles.scale(10).index(1).compute(dataset))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
        assertThat(dataset).asList().isEqualTo(SIXTEEN_SQUARES_LONGS);
      }
    
      public void testScale_index_compute_intVarargs() {
        int[] dataset = Ints.toArray(SIXTEEN_SQUARES_INTEGERS);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/KuromojiCSVUtil.java

                sb.append(c);
            }
    
            result.add(sb.toString());
    
            // Validate
            if (quoteCount % 2 != 0) {
                return new String[0];
            }
    
            return result.toArray(new String[result.size()]);
        }
    
        private static String unQuoteUnEscape(final String original) {
            String result = original;
    
            // Unquote
            if (result.indexOf('\"') >= 0) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

       *
       * A call to of() with a parameter that is not a plain Object[] (here,
       * Interface[]) creates a RegularImmutableSortedSet backed by an array of that
       * type. Later, RegularImmutableSortedSet.toArray() calls System.arraycopy()
       * to copy from that array to the destination array. This would be fine, but
       * GWT has a bug: It refuses to copy from an E[] to an Object[] when E is an
       * interface type.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top