Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 463 for Float (0.13 sec)

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

                    },
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(1);
        assertThat(
                Floats.indexOf(
                    new float[] {(float) 4, (float) 3, (float) 2},
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(-1);
    
        for (float value : NUMBERS) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          Float[] suffix = {(float) 86, (float) 99};
          Float[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/nn_grad_test.cc

      auto ReluGradModel = BuildGradModel(ReluModel, registry_);
    
      float X_vals[] = {1.0f, 2.0f, 3.0f, -5.0f, -4.0f, -3.0f, 2.0f, 10.0f, -1.0f};
      int64_t X_dims[] = {3, 3};
      AbstractTensorHandlePtr X;
      {
        AbstractTensorHandle* X_raw;
        status_ = TestTensorHandleWithDims<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), X_vals, X_dims, 2, &X_raw);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * @return a hash code for the value
       */
      public static int hashCode(float value) {
        // TODO(kevinb): is there a better way, that's still gwt-safe?
        return ((Float) value).hashCode();
      }
    
      /**
       * Compares the two specified {@code float} values using {@link Float#compare(float, float)}. You
       * may prefer to invoke that method directly; this method exists only for consistency with the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckNonNegative_zeroFloat() {
        MathPreconditions.checkNonNegative("float", 0f);
      }
    
      public void testCheckNonNegative_maxFloat() {
        MathPreconditions.checkNonNegative("float", Float.MAX_VALUE);
      }
    
      public void testCheckNonNegative_minFloat() {
        MathPreconditions.checkNonNegative("float", Float.MIN_VALUE);
      }
    
      public void testCheckNonNegative_positiveFloat() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. tests/main.py

    def get_path_param_gt(item_id: float = Path(gt=3)):
        return item_id
    
    
    @app.get("/path/param-gt0/{item_id}")
    def get_path_param_gt0(item_id: float = Path(gt=0)):
        return item_id
    
    
    @app.get("/path/param-ge/{item_id}")
    def get_path_param_ge(item_id: float = Path(ge=3)):
        return item_id
    
    
    @app.get("/path/param-lt/{item_id}")
    def get_path_param_lt(item_id: float = Path(lt=3)):
        return item_id
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Float}
         */
        public static Float toFloat(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof Float) {
                return (Float) o;
            } else if (o instanceof Number) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/math_grad_test.cc

        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 2.0f, &x_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        x.reset(x_raw);
      }
    
      AbstractTensorHandlePtr y;
      {
        AbstractTensorHandle* y_raw = nullptr;
        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 2.0f, &y_raw);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java

    public abstract class FloatsMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native float min(float... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native float max(float... array);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Oct 26 00:50:12 GMT 2023
    - 1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

                    },
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(1);
        assertThat(
                Floats.indexOf(
                    new float[] {(float) 4, (float) 3, (float) 2},
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(-1);
    
        for (float value : NUMBERS) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top