Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,211 for float1 (0.13 sec)

  1. src/math/big/floatmarsh.go

    // to the decoded value.
    func (z *Float) GobDecode(buf []byte) error {
    	if len(buf) == 0 {
    		// Other side sent a nil or default value.
    		*z = Float{}
    		return nil
    	}
    	if len(buf) < 6 {
    		return errors.New("Float.GobDecode: buffer too small")
    	}
    
    	if buf[0] != floatGobVersion {
    		return fmt.Errorf("Float.GobDecode: encoding version %d not supported", buf[0])
    	}
    
    	oldPrec := z.prec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	// The sharp flag has no effect for binary float format.
    	{"%#b", 1.0, "4503599627370496p-52"},
    	// Precision has no effect for binary float format.
    	{"%.4b", float32(1.0), "8388608p-23"},
    	{"%.4b", -1.0, "-4503599627370496p-52"},
    	// Test correct f.intbuf boundary checks.
    	{"%.68f", 1.0, zeroFill("1.", 68, "")},
    	{"%.68f", -1.0, zeroFill("-1.", 68, "")},
    	// float infinites and NaNs
    	{"%f", posInf, "+Inf"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/math/rand/v2/rand_test.go

    func initNorm() (testKn []uint32, testWn, testFn []float32) {
    	const m1 = 1 << 31
    	var (
    		dn float64 = rn
    		tn         = dn
    		vn float64 = 9.91256303526217e-3
    	)
    
    	testKn = make([]uint32, 128)
    	testWn = make([]float32, 128)
    	testFn = make([]float32, 128)
    
    	q := vn / math.Exp(-0.5*dn*dn)
    	testKn[0] = uint32((dn / q) * m1)
    	testKn[1] = 0
    	testWn[0] = float32(q / m1)
    	testWn[127] = float32(dn / m1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. test/nilptr5_wasm.go

    // license that can be found in the LICENSE file.
    
    // Test that nil checks are removed.
    // Optimization is enabled.
    
    package p
    
    func f5(p *float32, q *float64, r *float32, s *float64) float64 {
    	x := float64(*p) // ERROR "generated nil check"
    	y := *q          // ERROR "generated nil check"
    	*r = 7           // ERROR "generated nil check"
    	*s = 9           // ERROR "generated nil check"
    	return x + y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 813 bytes
    - Viewed (0)
  5. src/expvar/expvar.go

    }
    
    func (v *Int) Set(value int64) {
    	v.i.Store(value)
    }
    
    // Float is a 64-bit float variable that satisfies the [Var] interface.
    type Float struct {
    	f atomic.Uint64
    }
    
    func (v *Float) Value() float64 {
    	return math.Float64frombits(v.f.Load())
    }
    
    func (v *Float) String() string {
    	return string(v.appendJSON(nil))
    }
    
    func (v *Float) appendJSON(b []byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

          // If the tensor is a weight, it should have type FLOAT16.
          // If the tensor is a bias, it should have type FLOAT16.
          // If the tensor is an input or output it should have type FLOAT32.
          // The input to dequantize should be FLOAT16, and all other tensors should
          // be FLOAT32.
          if (i == dequant_input_idx) {
            EXPECT_EQ(quant_tensor->type(), TensorType_FLOAT16);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins_test.go

    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    	{"complex", `type F64 float64; var re, im F64; _ = complex(re, im)`, `func(p.F64, p.F64) complex128`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/math/rand/v2/normal.go

    		i := u >> 32 & 0x7F
    		x := float64(j) * float64(wn[i])
    		if absInt32(j) < kn[i] {
    			// This case should be hit better than 99% of the time.
    			return x
    		}
    
    		if i == 0 {
    			// This extra work is only required for the base strip.
    			for {
    				x = -math.Log(r.Float64()) * (1.0 / rn)
    				y := -math.Log(r.Float64())
    				if y+y >= x*x {
    					break
    				}
    			}
    			if j > 0 {
    				return rn + x
    			}
    			return -rn - x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:08:47 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testdata/swagger-precision-item-v3.json

                "type": "integer",
                "format": "int64"
              },
              "float32": {
                "description": "Float32 field.",
                "type": "number",
                "format": "float32"
              },
              "float64": {
                "description": "Float64 field.",
                "type": "number",
                "format": "float64"
              }
            },
            "x-kubernetes-group-version-kind": [
              {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    		},
    		{
    			name: "float64",
    			obj:  float64(2.71),
    		},
    		{
    			name: "float64 max",
    			obj:  float64(math.MaxFloat64),
    		},
    		{
    			name: "float64 smallest nonzero",
    			obj:  float64(math.SmallestNonzeroFloat64),
    		},
    		{
    			name: "float64 no fractional component",
    			obj:  float64(5),
    		},
    		{
    			name: "float32",
    			obj:  float32(2.71),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top