Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 77 for isChan (0.15 sec)

  1. src/fmt/scan_test.go

    	if err != nil {
    		t.Errorf("got error scanning %q: %s", text, err)
    	}
    	if n != 3 {
    		t.Errorf("count error scanning %q: got %d", text, n)
    	}
    	if !math.IsNaN(float64(f)) || !math.IsNaN(float64(f32)) || !math.IsNaN(f64) {
    		t.Errorf("didn't get NaNs scanning %q: got %g %g %g", text, f, f32, f64)
    	}
    }
    
    func TestNaN(t *testing.T) {
    	for _, s := range []string{"nan", "NAN", "NaN"} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  2. src/runtime/softfloat64.go

    	if fn {
    		return nan64
    	}
    	fs64 := uint64(fs) << 32
    	if fi {
    		return fs64 ^ inf64
    	}
    	return fpack64(fs64, uint64(fm)<<d, fe, 0)
    }
    
    func fcmp64(f, g uint64) (cmp int32, isnan bool) {
    	fs, fm, _, fi, fn := funpack64(f)
    	gs, gm, _, gi, gn := funpack64(g)
    
    	switch {
    	case fn, gn: // flag NaN
    		return 0, true
    
    	case !fi && !gi && fm == 0 && gm == 0: // ±0 == ±0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 17:58:41 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/gradient_checker.cc

            auto cur_error = std::fabs(jac_t(r, c) - jac_n(r, c));
            // Treat any NaN as max_error and immediately return.
            // (Note that std::max may ignore NaN arguments.)
            if (std::isnan(cur_error)) {
              *max_error = cur_error;
              return absl::OkStatus();
            }
            *max_error = std::max(*max_error, cur_error);
          }
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero
       */
      public final void setRate(double permitsPerSecond) {
        checkArgument(
            permitsPerSecond > 0.0 && !Double.isNaN(permitsPerSecond), "rate must be positive");
        synchronized (mutex()) {
          doSetRate(permitsPerSecond, stopwatch.readMicros());
        }
      }
    
      abstract void doSetRate(double permitsPerSecond, long nowMicros);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. src/math/big/ratconv_test.go

    	"1152921504606846977",  //   1<<60 + 1
    	"-1152921504606846977", // -(1<<60 + 1)
    
    	"1/3",
    }
    
    // isFinite reports whether f represents a finite rational value.
    // It is equivalent to !math.IsNan(f) && !math.IsInf(f, 0).
    func isFinite(f float64) bool {
    	return math.Abs(f) <= math.MaxFloat64
    }
    
    func TestFloat32SpecialCases(t *testing.T) {
    	for _, input := range float64inputs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (I64Or  (I64Const [x]) (I64Const [y])) => (I64Const [x | y])
    (I64Xor (I64Const [x]) (I64Const [y])) => (I64Const [x ^ y])
    (F64Add (F64Const [x]) (F64Const [y])) => (F64Const [x + y])
    (F64Mul (F64Const [x]) (F64Const [y])) && !math.IsNaN(x * y) => (F64Const [x * y])
    (I64Eq  (I64Const [x]) (I64Const [y])) && x == y => (I64Const [1])
    (I64Eq  (I64Const [x]) (I64Const [y])) && x != y => (I64Const [0])
    (I64Ne  (I64Const [x]) (I64Const [y])) && x == y => (I64Const [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.js

      }
    
      function nodeId(elem) {
        const id = elem.id;
        if (!id) return -1;
        if (!id.startsWith('node')) return -1;
        const n = parseInt(id.slice(4), 10);
        if (isNaN(n)) return -1;
        if (n < 0 || n >= nodes.length) return -1;
        return n;
      }
    
      // Change highlighting of node (returns true if node was found).
      function setNodeHighlight(n, set) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesTest.java

                8, NaN,
                9, NaN,
                10, NaN);
      }
    
      public void testScale_index_compute_doubleCollection_nan() {
        assertThat(Quantiles.scale(10).index(5).compute(ONE_TO_FIVE_AND_NAN)).isNaN();
      }
    
      // 3. Tests on a mechanically generated dataset for chains starting with percentiles():
    
      private static final int PSEUDORANDOM_DATASET_SIZE = 9951;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  9. test/map.go

    	nan := math.NaN()
    	for i := 0; i < n; i++ {
    		m[nan] = 1
    	}
    	if len(m) != n {
    		panic("wrong size map after nan insertion")
    	}
    	iters := 0
    	for k, v := range m {
    		iters++
    		if !math.IsNaN(k) {
    			panic("not NaN")
    		}
    		if v != 1 {
    			panic("wrong value")
    		}
    	}
    	if iters != n {
    		panic("wrong number of nan range iters")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
  10. docs/yo/docs/index.md

    ---
    
    "_**Netflix** ni inudidun láti kede itusilẹ orisun kóòdù ti ìlànà iṣọkan **iṣakoso Ìṣòro** wa: **Ìfiránṣẹ́**! [a kọ pẹ̀lú **FastAPI**]_"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Apr 29 05:18:04 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top