Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 116 for cedil (0.04 sec)

  1. pkg/api/v1/resource/helpers.go

    	c := int64(math.Ceil(float64(cpu.MilliValue()) / float64(divisor.MilliValue())))
    	return strconv.FormatInt(c, 10), nil
    }
    
    // convertResourceMemoryToString converts memory value to the format of divisor and returns
    // ceiling of the value.
    func convertResourceMemoryToString(memory *resource.Quantity, divisor resource.Quantity) (string, error) {
    	m := int64(math.Ceil(float64(memory.Value()) / float64(divisor.Value())))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding_test.go

    	}
    	return ans
    }
    
    func TestUniformDistribution(t *testing.T) {
    	const spare = 64 - MaxHashBits
    	tests := []struct {
    		deckSize, handSize int
    		hashMax            int
    	}{
    		{64, 3, 1 << uint(math.Ceil(math.Log2(float64(ff(64, 3))))+spare)},
    		{128, 3, ff(128, 3)},
    		{50, 4, ff(50, 4)},
    	}
    	for _, test := range tests {
    		dealer, err := NewDealer(test.deckSize, test.handSize)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 25 06:44:08 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters.h

    inline float CalculateBinWidth(const float min_value, const float max_value,
                                   const int32_t num_bins) {
      const float raw_bin_width = (max_value - min_value) / num_bins;
      return std::pow(2, std::ceil(std::log2(raw_bin_width)));
    }
    
    // Calculates the lower bound of the histogram. The lower bound is in form of
    // `N * bin_width`.
    inline float CalculateLowerBound(const float min_value, const float bin_width) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/cidr.go

    func (d CIDR) Value() any {
    	return d.Prefix
    }
    
    // Size returns the size of the CIDR prefix address in bytes.
    // Used in the size estimation of the runtime cost.
    func (d CIDR) Size() ref.Val {
    	return types.Int(int(math.Ceil(float64(d.Prefix.Bits()) / 8)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/crypto/internal/mlkem768/mlkem768_test.go

    			}
    			got := decompress(c, bits)
    			diff := min(a-got, got-a, a-got+q, got-a+q)
    			ceil := q / (1 << bits)
    			if diff > fieldElement(ceil) {
    				t.Fatalf("decompress(compress(%d, %d), %d) = %d (diff %d, max diff %d)",
    					a, bits, bits, got, diff, ceil)
    			}
    		}
    	}
    }
    
    func CompressRat(x fieldElement, d uint8) uint16 {
    	if x >= q {
    		panic("x out of range")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc

                                          const float max_value,
                                          const float bin_width) {
      const float lower_bound = CalculateLowerBound(min_value, bin_width);
      return std::ceil((max_value - lower_bound) / bin_width);
    }
    
    TEST(CalibrationParametersTest, CalculateBinWidthSmallerThanOne) {
      float bin_width = CalculateBinWidth(/*min_value=*/0.0, /*max_value=*/25.0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/Base64.java

         */
        public static String encode(byte[] bytes) {
            int length = bytes.length;
            if (length == 0) return "";
            StringBuffer buffer =
                    new StringBuffer((int) Math.ceil((double) length / 3d) * 4);
            int remainder = length % 3;
            length -= remainder;
            int block;
            int i = 0;
            while (i < length) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    	}
    	value, isPercent, err := getIntOrPercentValueSafely(intOrPercent)
    	if err != nil {
    		return 0, fmt.Errorf("invalid value for IntOrString: %v", err)
    	}
    	if isPercent {
    		if roundUp {
    			value = int(math.Ceil(float64(value) * (float64(total)) / 100))
    		} else {
    			value = int(math.Floor(float64(value) * (float64(total)) / 100))
    		}
    	}
    	return value, nil
    }
    
    // GetValueFromIntOrPercent was deprecated in favor of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_histogram.cc

          CalculateBinWidth(min, max, histogram.size());
      const float collected_lower_bound =
          CalculateLowerBound(min, collected_bin_width);
      const float collected_upper_bound =
          std::ceil(max / collected_bin_width) * collected_bin_width;
    
      // When histogram is not initialized.
      if (hist_freq_.empty()) {
        bin_width_ = collected_bin_width;
        lower_bound_ = collected_lower_bound;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleSqrt() {
    	const (
    		a = 3
    		b = 4
    	)
    	c := math.Sqrt(a*a + b*b)
    	fmt.Printf("%.1f", c)
    	// Output: 5.0
    }
    
    func ExampleCeil() {
    	c := math.Ceil(1.49)
    	fmt.Printf("%.1f", c)
    	// Output: 2.0
    }
    
    func ExampleFloor() {
    	c := math.Floor(1.51)
    	fmt.Printf("%.1f", c)
    	// Output: 1.0
    }
    
    func ExamplePow() {
    	c := math.Pow(2, 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
Back to top