Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for set_floatx (0.37 sec)

  1. internal/s3select/sql/value.go

    		}
    
    		fA, okAf := a.bytesToFloat()
    		fB, okBf := b.bytesToFloat()
    		if okAf && okBf {
    			a.setFloat(fA)
    			b.setFloat(fB)
    			return nil
    		}
    
    		// Check if they int and float combination.
    		if okAi && okBf {
    			a.setInt(iA)
    			b.setFloat(fA)
    			return nil
    		}
    		if okBi && okAf {
    			a.setFloat(fA)
    			b.setInt(iB)
    			return nil
    		}
    
    		// Not numeric types at this point.
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  2. schema/field.go

    			case int:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int8:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int16:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case int32:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case uint:
    				field.ReflectValueOf(ctx, value).SetFloat(float64(data))
    			case uint8:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. internal/s3select/sql/aggregation.go

    		// inferring untyped values are numbers.
    		if !argVal.isNumeric() {
    			if i, ok := argVal.bytesToInt(); ok {
    				argVal.setInt(i)
    			} else if f, ok := argVal.bytesToFloat(); ok {
    				argVal.setFloat(f)
    			} else {
    				return errNonNumericArg(funcName)
    			}
    		}
    	}
    
    	// Mark that we have seen one non-null value.
    	isFirstRow := false
    	if !e.aggregate.seen {
    		e.aggregate.seen = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go

    			return
    		}
    		switch obj.Kind() {
    		case reflect.String:
    			obj.SetString(obj.String() + "x")
    		case reflect.Bool:
    			obj.SetBool(!obj.Bool())
    		case reflect.Float32, reflect.Float64:
    			obj.SetFloat(obj.Float()*2.0 + 1.0)
    		case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
    			obj.SetInt(obj.Int() + 1)
    		case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/testing/quick/quick.go

    	}
    
    	v := reflect.New(t).Elem()
    	switch concrete := t; concrete.Kind() {
    	case reflect.Bool:
    		v.SetBool(rand.Int()&1 == 0)
    	case reflect.Float32:
    		v.SetFloat(float64(randFloat32(rand)))
    	case reflect.Float64:
    		v.SetFloat(randFloat64(rand))
    	case reflect.Complex64:
    		v.SetComplex(complex(float64(randFloat32(rand)), float64(randFloat32(rand))))
    	case reflect.Complex128:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/reflect/example_test.go

    			Tag:  `json:"height"`,
    		},
    		{
    			Name: "Age",
    			Type: reflect.TypeOf(int(0)),
    			Tag:  `json:"age"`,
    		},
    	})
    
    	v := reflect.New(typ).Elem()
    	v.Field(0).SetFloat(0.4)
    	v.Field(1).SetInt(2)
    	s := v.Addr().Interface()
    
    	w := new(bytes.Buffer)
    	if err := json.NewEncoder(w).Encode(s); err != nil {
    		panic(err)
    	}
    
    	fmt.Printf("value: %+v\n", s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:04:36 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. src/encoding/xml/read.go

    			return err
    		}
    		dst.SetUint(utmp)
    	case reflect.Float32, reflect.Float64:
    		if len(src) == 0 {
    			dst.SetFloat(0)
    			return nil
    		}
    		ftmp, err := strconv.ParseFloat(strings.TrimSpace(string(src)), dst.Type().Bits())
    		if err != nil {
    			return err
    		}
    		dst.SetFloat(ftmp)
    	case reflect.Bool:
    		if len(src) == 0 {
    			dst.SetBool(false)
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  8. src/encoding/binary/binary.go

    		v.SetUint(uint64(d.uint16()))
    	case reflect.Uint32:
    		v.SetUint(uint64(d.uint32()))
    	case reflect.Uint64:
    		v.SetUint(d.uint64())
    
    	case reflect.Float32:
    		v.SetFloat(float64(math.Float32frombits(d.uint32())))
    	case reflect.Float64:
    		v.SetFloat(math.Float64frombits(d.uint64()))
    
    	case reflect.Complex64:
    		v.SetComplex(complex(
    			float64(math.Float32frombits(d.uint32())),
    			float64(math.Float32frombits(d.uint32())),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (v <type 1>) Set (x <type 1>);
     func (v <type 1>) SetBool (x <type -15>);
     func (v <type 1>) SetBytes (x <type 56 [] <type -20>>);
     func (v <type 1>) SetComplex (x <type -18>);
     func (v <type 1>) SetFloat (x <type -10>);
     func (v <type 1>) SetInt (x <type -4>);
     func (v <type 1>) SetLen (n <type -11>);
     func (v <type 1>) SetMapIndex (key <type 1>, val <type 1>);
     func (v <type 1>) SetUint (x <type -8>);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  10. RELEASE.md

            issued that starts with Layer "layer-name" is casting an input tensor
            from dtype float64 to the layer's dtype of float32. To fix, either set
            the default dtype to float64 with
            `tf.keras.backend.set_floatx('float64')`, or pass `dtype='float64'` to
            each of the Layer constructors. See `tf.keras.layers.Layer` for more
            information.
        *   Some `tf.assert_*` methods now raise assertions at operation creation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top