Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 161 for Complex64 (0.15 sec)

  1. src/reflect/tostring_test.go

    		return strconv.FormatInt(val.Int(), 10)
    	case Uint, Uint8, Uint16, Uint32, Uint64, Uintptr:
    		return strconv.FormatUint(val.Uint(), 10)
    	case Float32, Float64:
    		return strconv.FormatFloat(val.Float(), 'g', -1, 64)
    	case Complex64, Complex128:
    		c := val.Complex()
    		return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i"
    	case String:
    		return val.String()
    	case Bool:
    		if val.Bool() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. src/reflect/abi_test.go

    	return f(a0, MagicLastTypeNameForTestingRegisterABI{})
    }
    
    //go:registerparams
    //go:noinline
    func callArgsComplex64(f func(complex64, MagicLastTypeNameForTestingRegisterABI) complex64, a0 complex64) complex64 {
    	return f(a0, MagicLastTypeNameForTestingRegisterABI{})
    }
    
    //go:registerparams
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 26.4K bytes
    - Viewed (0)
  3. test/map1.go

    	_ map[uint8]v
    	_ map[int16]v
    	_ map[uint16]v
    	_ map[int32]v
    	_ map[uint32]v
    	_ map[int64]v
    	_ map[uint64]v
    	_ map[int]v
    	_ map[uint]v
    	_ map[uintptr]v
    	_ map[float32]v
    	_ map[float64]v
    	_ map[complex64]v
    	_ map[complex128]v
    	_ map[bool]v
    	_ map[string]v
    	_ map[chan int]v
    	_ map[*int]v
    	_ map[struct{}]v
    	_ map[[10]int]v
    
    	// invalid
    	_ map[[]int]v       // ERROR "invalid map key"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  4. src/internal/reflectlite/tostring_test.go

    		return strconv.FormatUint(val.Uint(), 10)
    	case reflect.Float32, reflect.Float64:
    		return strconv.FormatFloat(val.Float(), 'g', -1, 64)
    	case reflect.Complex64, reflect.Complex128:
    		c := val.Complex()
    		return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i"
    	case reflect.String:
    		return val.String()
    	case reflect.Bool:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  5. src/encoding/binary/binary_test.go

    	Int8       int8
    	Int16      int16
    	Int32      int32
    	Int64      int64
    	Uint8      uint8
    	Uint16     uint16
    	Uint32     uint32
    	Uint64     uint64
    	Float32    float32
    	Float64    float64
    	Complex64  complex64
    	Complex128 complex128
    	Array      [4]uint8
    	Bool       bool
    	BoolArray  [4]bool
    }
    
    type T struct {
    	Int     int
    	Uint    uint
    	Uintptr uintptr
    	Array   [4]int
    }
    
    var s = Struct{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. src/internal/types/testdata/spec/conversions.go

    func _[X, T Complex](x X) T { return T(x) }
    func _[X, T Float | Complex](x X) T {
    	return T(x /* ERROR "cannot convert x (variable of type X constrained by Float | Complex) to type T: cannot convert float32 (in X) to type complex64 (in T)" */)
    }
    
    // "x is an integer or a slice of bytes or runes and T is a string type"
    
    type myInt int
    type myString string
    
    func _[T ~string](x int) T      { return T(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. src/encoding/gob/codec_test.go

    	}
    
    	// complex64
    	b.Reset()
    	it = inputT{
    		Maxc: complex(math.MaxFloat32*2, math.MaxFloat32*2),
    	}
    	type outc64 struct {
    		Maxc complex64
    		Minc complex64
    	}
    	var o8 outc64
    	enc.Encode(it)
    	err = dec.Decode(&o8)
    	if err == nil || err.Error() != `value for "Maxc" out of range` {
    		t.Error("wrong overflow error for complex64:", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  8. src/runtime/alg.go

    	return *(*float32)(p) == *(*float32)(q)
    }
    func f64equal(p, q unsafe.Pointer) bool {
    	return *(*float64)(p) == *(*float64)(q)
    }
    func c64equal(p, q unsafe.Pointer) bool {
    	return *(*complex64)(p) == *(*complex64)(q)
    }
    func c128equal(p, q unsafe.Pointer) bool {
    	return *(*complex128)(p) == *(*complex128)(q)
    }
    func strequal(p, q unsafe.Pointer) bool {
    	return *(*string)(p) == *(*string)(q)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. src/strconv/atoc_test.go

    		}
    
    		if complex128(complex64(test.out)) == test.out {
    			got, err := ParseComplex(test.in, 64)
    			if !reflect.DeepEqual(err, test.err) {
    				t.Fatalf("ParseComplex(%q, 64) = %v, %v; want %v, %v", test.in, got, err, test.out, test.err)
    			}
    			got64 := complex64(got)
    			if complex128(got64) != test.out {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 23:05:51 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  10. src/internal/types/testdata/examples/constraints.go

    // any methods or embed comparable.
    
    type (
    	Integer interface{ ~int|~int8|~int16|~int32|~int64 }
    	Unsigned interface{ ~uint|~uint8|~uint16|~uint32|~uint64 }
    	Floats interface{ ~float32|~float64 }
    	Complex interface{ ~complex64|~complex128 }
    	Number interface{ Integer|Unsigned|Floats|Complex }
    	Ordered interface{ Integer|Unsigned|Floats|~string }
    
    	_ interface{ Number | error /* ERROR "cannot use error in union" */ }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top