Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for sqrt1 (0.1 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        // CHECK: [[LR_MULTIPLY:%.*]] = "tf.Mul"([[LR]], [[GRAD]]) : (tensor<f32>, tensor<f32>) -> tensor<f32>
        // CHECK: [[SQRT:%.*]] = "tf.Sqrt"([[NEW_ACC]]) : (tensor<*xf32>) -> tensor<*xf32>
        // CHECK: [[DIVISOR:%.*]] = "tf.AddV2"([[SQRT]], [[EPSILON]]) : (tensor<*xf32>, tensor<f32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/math_grad.cc

                    const std::vector<Output>& grad_inputs,
                    std::vector<Output>* grad_outputs) {
      // y = asin(x)
      // dy/dx = 1 / sqrt(1 - x^2)
      auto x2 = Square(scope, op.input(0));
      auto one = Cast(scope, Const(scope, 1.0), op.input(0).type());
      auto dydx = Reciprocal(scope, Sqrt(scope, Sub(scope, one, x2)));
      // grad(x) = grad(y) * conj(dy/dx)
      auto dx = Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Preconditions.java

     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
     *   // calculate square root
     * }
     * }</pre>
     *
     * <p>to be replaced with the more compact
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   checkArgument(value >= 0, "input is negative: %s", value);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Preconditions.java

     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
     *   // calculate square root
     * }
     * }</pre>
     *
     * <p>to be replaced with the more compact
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   checkArgument(value >= 0, "input is negative: %s", value);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

    //
    // The pattern lower FusedBatchNormV3 to arithmetic ops.
    // Specifically, performs the following calculation:
    //
    //   (x - mean) * scale / sqrt(variance + epsilon) + offset
    //
    // Let multiplier = scale / sqrt(variance + epsilon),
    // to compute
    //   (x - mean) * scale / sqrt(variance + epsilon) + offset,
    // is then to compute
    //   (x * multiplier) + (offset - mean * multiplier).
    //
    // def : Pattern<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

       *      = ImmutableListMultimap.of("a", 4, "a", 16, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
       * ListMultimap<String, Double> transformed = Multimaps.transformValues(map,
       *     sqrt);
       * System.out.println(transformed);
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multimaps.java

       *      = ImmutableListMultimap.of("a", 4, "a", 16, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
       * ListMultimap<String, Double> transformed = Multimaps.transformValues(map,
       *     sqrt);
       * System.out.println(transformed);
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FSQRTD", argLength: 1, reg: fp11, asm: "FSQRTD"},                              // sqrt(arg0), float64
    		{name: "FSQRTS", argLength: 1, reg: fp11, asm: "FSQRTS"},                              // sqrt(arg0), float32
    		{name: "FMIND", argLength: 2, reg: fp21, asm: "FMIND"},                                // min(arg0, arg1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARM.rules

    (Or(32|16|8) ...) => (OR ...)
    (Xor(32|16|8) ...) => (XOR ...)
    
    // unary ops
    (Neg(32|16|8) x) => (RSBconst [0] x)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(32|16|8) ...) => (MVN ...)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    (Abs ...) => (ABSD ...)
    
    // TODO: optimize this for ARMv5 and ARMv6
    (Ctz32NonZero ...) => (Ctz32 ...)
    (Ctz16NonZero ...) => (Ctz32 ...)
    (Ctz8NonZero ...) => (Ctz32 ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
Back to top