Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 255 for 2xcomplex (0.15 sec)

  1. src/cmd/compile/internal/types2/conversions.go

    				return true
    			}
    		}
    	}
    
    	// "V and T are both integer or floating point types"
    	if isIntegerOrFloat(Vu) && isIntegerOrFloat(Tu) {
    		return true
    	}
    
    	// "V and T are both complex types"
    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. test/fixedbugs/issue4813.go

    // Issue 4813: use of constant floats as indices.
    
    package main
    
    var A [3]int
    var S []int
    var T string
    
    const (
    	i  = 1
    	f  = 2.0
    	f2 = 2.1
    	c  = complex(2, 0)
    	c2 = complex(2, 1)
    )
    
    var (
    	vf = f
    	vc = c
    )
    
    var (
    	a1 = A[i]
    	a2 = A[f]
    	a3 = A[f2] // ERROR "truncated|must be integer"
    	a4 = A[c]
    	a5 = A[c2] // ERROR "truncated|must be integer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 13 01:18:12 UTC 2013
    - 1.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    		},
    		"add only not nulls": {
    			Original: `{}`,
    			Current:  `{}`,
    			Modified: `{"complex":{"nested":null,"nested2":"foo"}}`,
    
    			ExpectedTwoWay:         `{"complex":{"nested":null,"nested2":"foo"}}`,
    			ExpectedTwoWayResult:   `{"complex":{"nested2":"foo"}}`,
    			ExpectedThreeWay:       `{"complex":{"nested":null,"nested2":"foo"}}`,
    			ExpectedThreeWayResult: `{"complex":{"nested2":"foo"}}`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/sizes.go

    		panic("unreachable")
    	}
    	a := s.Sizeof(T) // may be 0 or negative
    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    		return 1
    	}
    	// complex{64,128} are aligned like [2]float{32,64}.
    	if isComplex(T) {
    		a /= 2
    	}
    	if a > s.MaxAlign {
    		return s.MaxAlign
    	}
    	return a
    }
    
    func IsSyncAtomicAlign64(T Type) bool {
    	named := asNamed(T)
    	if named == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/fmt/fmt_test.go

    	{"%.1f", complex(posInf, posInf), "(+Inf+Infi)"},
    	{"% f", complex(posInf, posInf), "( Inf+Infi)"},
    	{"% f", complex(negInf, negInf), "(-Inf-Infi)"},
    	{"% f", complex(NaN, NaN), "( NaN+NaNi)"},
    	{"%8e", complex(posInf, posInf), "(    +Inf    +Infi)"},
    	{"%8x", complex(posInf, posInf), "(    +Inf    +Infi)"},
    	{"% 8E", complex(posInf, posInf), "(     Inf    +Infi)"},
    	{"% 8X", complex(posInf, posInf), "(     Inf    +Infi)"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/subr.go

    		if types.SimType[src.Kind()] == types.SimType[dst.Kind()] {
    			return ir.OCONVNOP, ""
    		}
    		return ir.OCONV, ""
    	}
    
    	// 5. src and dst are both complex types.
    	if src.IsComplex() && dst.IsComplex() {
    		if types.SimType[src.Kind()] == types.SimType[dst.Kind()] {
    			return ir.OCONVNOP, ""
    		}
    		return ir.OCONV, ""
    	}
    
    	// Special case for constant conversions: any numeric
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  7. test/fixedbugs/bug390.go

    package main
    
    import "unsafe"
    
    func main() {
    	var x *int
    	_ = unsafe.Pointer(x) - unsafe.Pointer(x) // ERROR "(operator|operation) - not defined on unsafe.Pointer|expected integer, floating, or complex type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 459 bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/TaskOrderSpecsTest.groovy

                [':b', ':c', ':a'],
                [':b', ':a', ':c'],
                [':z', ':a', ':c', ':x'],
                [':c', ':z', ':b', ':x', ':a', ':d'],
                []
            ]
        }
    
        def "can match on complex rule (#executedTasks)"() {
            def spec = exact(any(':a', ':b'), any(':c', exact(':d', ':e', ':f')))
    
            when:
            spec.assertMatches(-1, executedTasks)
    
            then:
            noExceptionThrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/internal/types/testdata/examples/constraints.go

    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)
  10. test/abi/fuzz_trailing_zero_field.go

    // run
    
    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    var p0exp = S1{
    	F1: complex(float64(2.3640607624715027), float64(-0.2717825524109192)),
    	F2: S2{F1: 9},
    	F3: 103050709,
    }
    
    type S1 struct {
    	F1 complex128
    	F2 S2
    	F3 uint64
    }
    
    type S2 struct {
    	F1 uint64
    	F2 empty
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 01 15:50:43 UTC 2021
    - 551 bytes
    - Viewed (0)
Back to top