Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for Rsqrt (0.04 sec)

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

       *     sqrt(x)} is not an integer
       */
      @GwtIncompatible // TODO
      @SuppressWarnings("fallthrough")
      public static BigInteger sqrt(BigInteger x, RoundingMode mode) {
        checkNonNegative("x", x);
        if (fitsInLong(x)) {
          return BigInteger.valueOf(LongMath.sqrt(x.longValue(), mode));
        }
        BigInteger sqrtFloor = sqrtFloor(x);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LongMathTest.java

            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(long, FLOOR). */
      @GwtIncompatible // TODO
      public void testSqrtExactMatchesFloorOrThrows() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          long sqrtFloor = LongMath.sqrt(x, FLOOR);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

       *     sqrt(x)} is not an integer
       */
      @GwtIncompatible // TODO
      @SuppressWarnings("fallthrough")
      public static BigInteger sqrt(BigInteger x, RoundingMode mode) {
        checkNonNegative("x", x);
        if (fitsInLong(x)) {
          return BigInteger.valueOf(LongMath.sqrt(x.longValue(), mode));
        }
        BigInteger sqrtFloor = sqrtFloor(x);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/math/big/int_test.go

    			if !testModSqrt(t, &elt, &mod, &sq, &sqrt) {
    				t.Errorf("#%d: failed (sqrt(%d,%d) = %s)", x, &elt, &mod, &sqrt)
    			}
    			isSquare[sq.Uint64()] = true
    		}
    
    		// test all non-squares
    		for x := 1; x < n; x++ {
    			sq.SetInt64(int64(x))
    			z := sqrt.ModSqrt(&sq, &mod)
    			if !isSquare[x] && z != nil {
    				t.Errorf("#%d: failed (sqrt(%d,%d) = nil)", x, &sqrt, &mod)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/LongMathTest.java

            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(long, FLOOR). */
      @GwtIncompatible // TODO
      public void testSqrtExactMatchesFloorOrThrows() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          long sqrtFloor = LongMath.sqrt(x, FLOOR);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LongMath.java

         * Math.sqrt(k * k) <= Math.sqrt(x) <= Math.sqrt((k + 1) * (k + 1))
         *          since Math.sqrt is monotonic.
         * (long) Math.sqrt(k * k) <= (long) Math.sqrt(x) <= (long) Math.sqrt((k + 1) * (k + 1))
         *          since casting to long is monotonic
         * k <= (long) Math.sqrt(x) <= k + 1
         *          since (long) Math.sqrt(k * k) == k, as checked exhaustively in
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

        if (!erf_user_user) return failure();
    
        // `mul 1/sqrt(2)`
        auto* erf_input = GetInputOpWithOneUse(op, 0);
        if (!erf_input) return failure();
    
        // `mul 0.5`
        auto* erf_user_user_input = GetInputOpWithOneUse(erf_user_user, 0);
        if (!erf_user_user_input) return failure();
    
        // Check `mul 0.5` and `mul 1/sqrt(2)` refer to the same input.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/LongMath.java

         * Math.sqrt(k * k) <= Math.sqrt(x) <= Math.sqrt((k + 1) * (k + 1))
         *          since Math.sqrt is monotonic.
         * (long) Math.sqrt(k * k) <= (long) Math.sqrt(x) <= (long) Math.sqrt((k + 1) * (k + 1))
         *          since casting to long is monotonic
         * k <= (long) Math.sqrt(x) <= k + 1
         *          since (long) Math.sqrt(k * k) == k, as checked exhaustively in
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/quantize-numeric-verify.mlir

    // MODEL-DEBUG: %[[f_sqrt1:.*]] = "tfl.sqrt"(%[[f_conv]]
    // MODEL-DEBUG: %[[q_sqrt1:.*]] = "tfl.sqrt"(%[[dq0]]
    // MODEL-DEBUG: %[[q1:.*]] = "tfl.quantize"(%[[q_sqrt1]])
    // MODEL-DEBUG: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]])
    // MODEL-DEBUG: %[[f_sqrt2:.*]] = "tfl.sqrt"(%[[f_sqrt1]])
    // MODEL-DEBUG-NOT: debug_
    // MODEL-DEBUG-SAME: (tensor<?x1x1x3xf32>)
    // MODEL-DEBUG: %[[q_sqrt2:.*]] = "tfl.sqrt"(%[[dq1]]
    // MODEL-DEBUG-NOT: debug_
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. src/go/doc/comment/print.go

    // a slash between ImportPath and # in the anchored forms.
    // For example, here are some baseURL values and URLs they can generate:
    //
    //	"/pkg/" → "/pkg/math/#Sqrt"
    //	"/pkg"  → "/pkg/math#Sqrt"
    //	"/"     → "/math/#Sqrt"
    //	""      → "/math#Sqrt"
    func (l *DocLink) DefaultURL(baseURL string) string {
    	if l.ImportPath != "" {
    		slash := ""
    		if strings.HasSuffix(baseURL, "/") {
    			slash = "/"
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top