Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for IsNaN (0.16 sec)

  1. src/math/all_test.go

    func veryclose(a, b float64) bool  { return tolerance(a, b, 4e-16) }
    func soclose(a, b, e float64) bool { return tolerance(a, b, e) }
    func alike(a, b float64) bool {
    	switch {
    	case IsNaN(a) && IsNaN(b):
    		return true
    	case a == b:
    		return Signbit(a) == Signbit(b)
    	}
    	return false
    }
    
    func TestNaN(t *testing.T) {
    	f64 := NaN()
    	if f64 == f64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  2. src/runtime/mgcscavenge.go

    	// Compute the raw output value.
    	prop := c.kp * (setpoint - input)
    	rawOutput := prop + c.errIntegral
    
    	// Clamp rawOutput into output.
    	output := rawOutput
    	if isInf(output) || isNaN(output) {
    		// The input had a large enough magnitude that either it was already
    		// overflowed, or some operation with it overflowed.
    		// Set a flag and reset. That's the safest thing to do.
    		c.reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    // of the mantissa. It will panic if the truncation results in lost information.
    func truncate64Fto32F(f float64) float32 {
    	if !isExactFloat32(f) {
    		panic("truncate64Fto32F: truncation is not exact")
    	}
    	if !math.IsNaN(f) {
    		return float32(f)
    	}
    	// NaN bit patterns aren't necessarily preserved across conversion
    	// instructions so we need to do the conversion manually.
    	b := math.Float64bits(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	return den == 0 || diff/den < 1e-10
    }
    
    func uint64max(a, b uint64) uint64 {
    	if b > a {
    		return b
    	}
    	return a
    }
    
    func float64NaNTo0(x float64) float64 {
    	if math.IsNaN(x) {
    		return 0
    	}
    	return x
    }
    
    func qsComplete(qsc fq.QueueSetCompleter, concurrencyLimit int) fq.QueueSet {
    	concurrencyDenominator := concurrencyLimit
    	if concurrencyDenominator <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  5. src/math/big/float_test.go

    					defer func() {
    						if p := recover(); p != nil {
    							_ = p.(ErrNaN) // re-panic if not ErrNaN
    							errnan = true
    						}
    					}()
    					f(got, xx, yy)
    				}()
    				if math.IsNaN(z) {
    					if !errnan {
    						t.Errorf("%5g %s %5g = %5s; want ErrNaN panic", x, op, y, got)
    					}
    					continue
    				}
    				if errnan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

              {"PW",
               {"ComplexAbs", "Angle", "Conj", "Abs", "Acos", "Acosh", "Asin",
                "Atan", "Atanh", "Ceil", "Cos", "Cosh", "Sin", "Exp", "Expm1",
                "Floor", "IsFinite", "IsInf", "IsNan", "Inv", "Reciprocal", "Log",
                "Log1p", "Invert", "LogicalNot", "Ndtri", "Neg", "Rint", "Round",
                "Rsqrt", "Sigmoid", "Sign", "Sinh", "Softplus", "Softsign", "Sqrt",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (FMOVDstore [off] {sym} ptr (MTVSRD x) mem) => (MOVDstore [off] {sym} ptr x mem)
    (MOVDstore [off] {sym} ptr (MFVSRD x) mem) => (FMOVDstore [off] {sym} ptr x mem)
    
    (MTVSRD (MOVDconst [c])) && !math.IsNaN(math.Float64frombits(uint64(c))) => (FMOVDconst [math.Float64frombits(uint64(c))])
    (MFVSRD (FMOVDconst [c])) => (MOVDconst [int64(math.Float64bits(c))])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

    func.func @is_nan(%arg0: tensor<3x4xf32>) -> tensor<3x4xi1> {
      // CHECK: %[[RESULT:.*]] = "tf.NotEqual"(%arg0, %arg0) <{incompatible_shape_error = true}> : (tensor<3x4xf32>, tensor<3x4xf32>) -> tensor<3x4xi1>
      %0 = "tf.IsNan"(%arg0) : (tensor<3x4xf32>) -> tensor<3x4xi1>
      // CHECK: return %[[RESULT]]
      func.return %0 : tensor<3x4xi1>
    }
    
    // CHECK-LABEL: func @fill
    // CHECK-SAME: (%[[ARG0:.*]]: tensor<*xi64>, %[[ARG1:.*]]: tensor<*xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
Back to top