Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for IsNaN (0.15 sec)

  1. 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)
  2. src/go/constant/value.go

    }
    
    // MakeFloat64 returns the [Float] value for x.
    // If x is -0.0, the result is 0.0.
    // If x is not finite, the result is an [Unknown].
    func MakeFloat64(x float64) Value {
    	if math.IsInf(x, 0) || math.IsNaN(x) {
    		return unknownVal{}
    	}
    	if smallFloat64(x) {
    		return ratVal{newRat().SetFloat64(x + 0)} // convert -0 to 0
    	}
    	return floatVal{newFloat().SetFloat64(x + 0)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/resources/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/report/uikit.min.js

    z(t){return"boolean"==typeof t}function D(t){return"string"==typeof t}function P(t){return"number"==typeof t}function B(t){return P(t)||D(t)&&!isNaN(t-parseFloat(t))}function O(t){return!(k(t)?t.length:I(t)&&Object.keys(t).length)}function H(t){return void 0===t}function L(t){return z(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function F(t){var e=Number(t);return!isNaN(e)&&e}function j(t){return parseFloat(t)||0}function W(t){return C(t)?t:M(t)||_(t)?t[0]:k(t)?W(t[0]):null}function V(t){return C...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 130.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Load <t1> p1 (Store {t2} p2 (Const64  [x]) _)) && isSamePtr(p1,p2) && sizeof(t2) == 8 && is64BitFloat(t1) && !math.IsNaN(math.Float64frombits(uint64(x))) => (Const64F [math.Float64frombits(uint64(x))])
    (Load <t1> p1 (Store {t2} p2 (Const32  [x]) _)) && isSamePtr(p1,p2) && sizeof(t2) == 4 && is32BitFloat(t1) && !math.IsNaN(float64(math.Float32frombits(uint32(x)))) => (Const32F [math.Float32frombits(uint32(x))])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    	highWatermark float64
    	smoothed      float64
    }
    
    func (stats *seatDemandStats) update(obs fq.IntegratorResults) {
    	stats.highWatermark = obs.Max
    	if obs.Duration <= 0 {
    		return
    	}
    	if math.IsNaN(obs.Deviation) {
    		obs.Deviation = 0
    	}
    	stats.avg = obs.Average
    	stats.stdDev = obs.Deviation
    	envelope := obs.Average + obs.Deviation
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    }
    
    bool IsSign(APInt a, APInt sign) {
      if (a.isZero()) return a == sign;
      if (a.isNegative()) return sign == -1;
      return sign == 1;
    }
    
    bool IsSign(APFloat a, APFloat sign) {
      if (a.isNaN() || a.isZero()) return a == sign;
      if (a.isNegative()) return sign.isExactlyValue(-1.0);
      return sign.isExactlyValue(1.0);
    }
    
    bool IsDenseSplatIntAttr(ElementsAttr float_or_int) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  7. src/internal/trace/traceviewer/static/trace_viewer_full.html

    )*n+.984375}function Eu(n,t){n=Xo.hcl(n),t=Xo.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return rt(e+i*n,r+o*n,u+a*n)+""}}function Au(n,t){n=Xo.hsl(n),t=Xo.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return nt(e+i*n,r+o*n,u+a*n)+""}}function Cu(n,t){n=X...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top