Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 255 for 2xcomplex (0.1 sec)

  1. test/fixedbugs/issue17038.go

    // errorcheck
    
    // Copyright 2016 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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 248 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/gcsizes.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 (s *gcSizes) Offsetsof(fields []*Var) []int64 {
    	offsets := make([]int64, len(fields))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/math_ops.h

               AbstractTensorHandle* const y, AbstractTensorHandle** z,
               const char* name = nullptr, const char* raw_device_name = nullptr);
    
    // Returns the complex conjugate of a complex number.
    Status Conj(AbstractContext* ctx, AbstractTensorHandle* const input,
                AbstractTensorHandle** output, const char* name = nullptr,
                const char* raw_device_name = nullptr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue5793.go

    	return 5, 7
    }
    
    func appendArgs() ([]string, string) {
    	return []string{"foo"}, "bar"
    }
    
    func appendMultiArgs() ([]byte, byte, byte) {
    	return []byte{'a', 'b'}, '1', '2'
    }
    
    func main() {
    	if c := complex(complexArgs()); c != 5+7i {
    		panic(c)
    	}
    
    	if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" {
    		panic(s)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 793 bytes
    - Viewed (0)
  5. test/fixedbugs/issue38117.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // cmd/compile erroneously rejected conversions of constant values
    // between int/float and complex types.
    
    package p
    
    const (
    	_ = int(complex64(int(0)))
    	_ = float64(complex128(float64(0)))
    
    	_ = int8(complex128(1000)) // ERROR "overflow|cannot convert"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 433 bytes
    - Viewed (0)
  6. src/internal/fmtsort/sort.go

    		return cmp.Compare(aVal.String(), bVal.String())
    	case reflect.Float32, reflect.Float64:
    		return cmp.Compare(aVal.Float(), bVal.Float())
    	case reflect.Complex64, reflect.Complex128:
    		a, b := aVal.Complex(), bVal.Complex()
    		if c := cmp.Compare(real(a), real(b)); c != 0 {
    			return c
    		}
    		return cmp.Compare(imag(a), imag(b))
    	case reflect.Bool:
    		a, b := aVal.Bool(), bVal.Bool()
    		switch {
    		case a == b:
    			return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcshared/testdata/issue36233/issue36233.go

    // Copyright 2022 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
    
    // #include <complex.h>
    import "C"
    
    //export exportComplex64
    func exportComplex64(v complex64) complex64 {
    	return v
    }
    
    //export exportComplex128
    func exportComplex128(v complex128) complex128 {
    	return v
    }
    
    //export exportComplexfloat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 601 bytes
    - Viewed (0)
  8. test/fixedbugs/issue28079b.go

    package p
    
    import "unsafe"
    
    type T [uintptr(unsafe.Pointer(nil))]int // ERROR "non-constant array bound|array bound is not constant|must be constant"
    
    func f() {
    	_ = complex(1<<uintptr(unsafe.Pointer(nil)), 0) // ERROR "shift of type float64|non-integer type for left operand of shift|must be integer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 547 bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/asm/asm1.s

    TEXT ·cpx(SB),0,$0-24
    	// These are ok
    	MOVSS	x_real+0(FP), X0
    	MOVSS	x_imag+4(FP), X0
    	MOVSD	y_real+8(FP), X0
    	MOVSD	y_imag+16(FP), X0
    	// Loading both parts of a complex is ok: see issue 35264.
    	MOVSD	x+0(FP), X0
    	MOVO	y+8(FP), X0
    	MOVOU	y+8(FP), X0
    
    	// These are not ok.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:48 UTC 2021
    - 883 bytes
    - Viewed (0)
  10. test/shift3.go

    	// corner cases
    	const M = math.MaxUint
    	f(x<<(M+0), 0)     // shift by untyped int representable as uint
    	f(x<<(M+0.), 0)    // shift by untyped float representable as uint
    	f(x<<(M+0.+0i), 0) // shift by untyped complex representable as uint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 17:19:55 UTC 2022
    - 834 bytes
    - Viewed (0)
Back to top