Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 141 for Floor (0.04 sec)

  1. src/math/rand/v2/rand.go

    	// In general (x*n)/2⁶⁴ = k for x*n in [k*2⁶⁴,(k+1)*2⁶⁴).
    	// There are either floor(2⁶⁴/n) or ceil(2⁶⁴/n) possible products
    	// in that range, depending on k.
    	// But suppose we reject the sample and try again when
    	// x*n is in [k*2⁶⁴, k*2⁶⁴+(2⁶⁴%n)), meaning rejecting fewer than n possible
    	// outcomes out of the 2⁶⁴.
    	// Now there are exactly floor(2⁶⁴/n) possible ways to produce
    	// each output value k, so we've restored uniformity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/math/gamma.go

    	case isNegInt(x) || IsInf(x, -1) || IsNaN(x):
    		return NaN()
    	case IsInf(x, 1):
    		return Inf(1)
    	case x == 0:
    		if Signbit(x) {
    			return Inf(-1)
    		}
    		return Inf(1)
    	}
    	q := Abs(x)
    	p := Floor(q)
    	if q > 33 {
    		if x >= 0 {
    			y1, y2 := stirling(x)
    			return y1 * y2
    		}
    		// Note: x is negative but (checked above) not a negative integer,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  3. test/codegen/math.go

    	sink64[0] = math.Ceil(x)
    
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]1"
    	// s390x:"FIDBR\t[$]7"
    	// arm64:"FRINTMD"
    	// ppc64x:"FRIM"
    	// wasm:"F64Floor"
    	sink64[1] = math.Floor(x)
    
    	// s390x:"FIDBR\t[$]1"
    	// arm64:"FRINTAD"
    	// ppc64x:"FRIN"
    	sink64[2] = math.Round(x)
    
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]3"
    	// s390x:"FIDBR\t[$]5"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/DoubleMath.java

          throw new ArithmeticException("input is infinite or NaN");
        }
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(isMathematicalInteger(x));
            return x;
    
          case FLOOR:
            if (x >= 0.0 || isMathematicalInteger(x)) {
              return x;
            } else {
              return (long) x - 1;
            }
    
          case CEILING:
            if (x <= 0.0 || isMathematicalInteger(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)
  5. guava/src/com/google/common/math/DoubleMath.java

          throw new ArithmeticException("input is infinite or NaN");
        }
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(isMathematicalInteger(x));
            return x;
    
          case FLOOR:
            if (x >= 0.0 || isMathematicalInteger(x)) {
              return x;
            } else {
              return (long) x - 1;
            }
    
          case CEILING:
            if (x <= 0.0 || isMathematicalInteger(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)
  6. src/cmd/cover/html.go

    	dst := bufio.NewWriter(w)
    	for i := range src {
    		for len(boundaries) > 0 && boundaries[0].Offset == i {
    			b := boundaries[0]
    			if b.Start {
    				n := 0
    				if b.Count > 0 {
    					n = int(math.Floor(b.Norm*9)) + 1
    				}
    				fmt.Fprintf(dst, `<span class="cov%v" title="%v">`, n, b.Count)
    			} else {
    				dst.WriteString("</span>")
    			}
    			boundaries = boundaries[1:]
    		}
    		switch b := src[i]; b {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 14:33:36 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

      %9 = mhlo.multiply %7, %8 : tensor<4xf32>
      %10 = "mhlo.broadcast_in_dim"(%2) <{broadcast_dimensions = dense<> : tensor<0xi64>}> : (tensor<f32>) -> tensor<4xf32>
      %11 = mhlo.divide %9, %10 : tensor<4xf32>
      %12 = mhlo.floor %11 : tensor<4xf32>
      %13 = mhlo.convert %12 : (tensor<4xf32>) -> tensor<4xi32>
      %14 = "mhlo.broadcast_in_dim"(%1) <{broadcast_dimensions = dense<> : tensor<0xi64>}> : (tensor<i32>) -> tensor<4xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/tests/opens2s_gnmt_mixed_precision.golden_summary

     All 2
     Cast 1
     Const 17
     Equal 2
     ExpandDims 2
     GatherV2 1
     Identity 1
     ReverseSequence 1
     Shape 2
     StridedSlice 2
     Transpose 2
    cluster 8 size 11
     Cast 1
     Const 4
     Floor 1
     Identity 1
     Mul 2
     Pow 1
     Sub 1
    cluster 9 size 5
     All 1
     Const 1
     Less 1
     LogicalAnd 1
     LogicalNot 1
    cluster 10 size 9
     All 1
     Const 4
     Equal 1
     LessEqual 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 06 10:38:14 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. src/go/doc/testdata/benchmark.go

    }
    
    func max(x, y int) int {
    	if x < y {
    		return y
    	}
    	return x
    }
    
    // roundDown10 rounds a number down to the nearest power of 10.
    func roundDown10(n int) int {
    	var tens = 0
    	// tens = floor(log_10(n))
    	for n > 10 {
    		n = n / 10
    		tens++
    	}
    	// result = 10^tens
    	result := 1
    	for i := 0; i < tens; i++ {
    		result *= 10
    	}
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  10. src/sync/pool.go

    }
    
    // Put adds x to the pool.
    func (p *Pool) Put(x any) {
    	if x == nil {
    		return
    	}
    	if race.Enabled {
    		if runtime_randn(4) == 0 {
    			// Randomly drop x on floor.
    			return
    		}
    		race.ReleaseMerge(poolRaceAddr(x))
    		race.Disable()
    	}
    	l, _ := p.pin()
    	if l.private == nil {
    		l.private = x
    	} else {
    		l.shared.pushHead(x)
    	}
    	runtime_procUnpin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top