Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 252 for fComplex128 (0.15 sec)

  1. tensorflow/c/kernels/ops/bitcast.cc

          "uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, "
          "qint16, quint16, qint32}");
      TF_OpDefinitionBuilderAddAttr(
          op_builder,
          "type: {bfloat16, half, float, double, int64, int32, uint8, uint16, "
          "uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, "
          "qint16, quint16, qint32}");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. test/fixedbugs/bug334.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 1716
    
    package main
    
    type (
    	cplx64  complex64
    	cplx128 complex128
    )
    
    func (c cplx64) Foo()  {}
    func (c cplx128) Foo() {}
    
    func main() {
    	var c64 cplx128
    	var c128 cplx64
    	c64.Foo()
    	c128.Foo()
    }
    
    /*
    bug334.go:16: invalid receiver type cplx64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 618 bytes
    - Viewed (0)
  3. test/fixedbugs/issue52862.dir/b.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 b
    
    import "./a"
    
    func F() complex128 {
    	return a.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 27 16:12:51 UTC 2022
    - 223 bytes
    - Viewed (0)
  4. test/fixedbugs/issue59190.go

    // Copyright 2023 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 p
    
    import "unsafe"
    
    type E [1 << 30]complex128
    
    var a [1 << 30]E
    var _ = unsafe.Sizeof(a) // ERROR "too large"
    
    var s struct {
    	_ [1 << 30]E
    	x int
    }
    var _ = unsafe.Offsetof(s.x) // ERROR "too large"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 27 16:52:49 UTC 2023
    - 688 bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/linalg.go

    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    		panic("DotProduct: slices of unequal length")
    	}
    	var r T
    	for i := range s1 {
    		r += s1[i] * s2[i]
    	}
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue58671.go

    package p
    
    func g[P any](...P) P { var x P; return x }
    
    func _() {
    	var (
    		_ int        = g(1, 2)
    		_ rune       = g(1, 'a')
    		_ float64    = g(1, 'a', 2.3)
    		_ float64    = g('a', 2.3)
    		_ complex128 = g(2.3, 'a', 1i)
    	)
    	g(true, 'a' /* ERROR "mismatched types untyped bool and untyped rune (cannot infer P)" */)
    	g(1, "foo" /* ERROR "mismatched types untyped int and untyped string (cannot infer P)" */)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 668 bytes
    - Viewed (0)
  7. test/fixedbugs/issue32723.go

    	_ = 1 < 2i  // ERROR "invalid operation: .*not defined on untyped complex|non-ordered type"
    
    	c := 1i
    	_ = c < 2i // ERROR "invalid operation: .*not defined on complex128|non-ordered type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 816 bytes
    - Viewed (0)
  8. test/noinit.go

    var ix int
    var i0 = 0
    var i1 = 1
    
    var jx uint
    var j0 = uint(0)
    var j1 = uint(1)
    
    var cx complex64
    var c0 = complex64(0)
    var c1 = complex64(1)
    
    var dx complex128
    var d0 = complex128(0)
    var d1 = complex128(1)
    
    var sx []int
    var s0 = []int{0, 0, 0}
    var s1 = []int{1, 2, 3}
    
    func fi() int { return 1 }
    
    var ax [10]int
    var a0 = [10]int{0, 0, 0}
    var a1 = [10]int{1, 2, 3, 4}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:57:36 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. test/typeparam/absdiff3.go

    	}
    	return a
    }
    
    // Complex matches the two complex types, which do not have a < operator.
    type Complex interface {
    	~complex64 | ~complex128
    }
    
    func realimag(x any) (re, im float64) {
    	switch z := x.(type) {
    	case complex64:
    		re = float64(real(z))
    		im = float64(imag(z))
    	case complex128:
    		re = real(z)
    		im = imag(z)
    	default:
    		panic("unknown complex type")
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/errors.go

    func f(x int, m map[string]int) {
    	// no values
    	_ = f /* ERROR "f(0, m) (no value) used as value" */ (0, m)
    
    	// built-ins
    	_ = println // ERROR "println (built-in) must be called"
    
    	// types
    	_ = complex128 // ERROR "complex128 (type) is not an expression"
    
    	// constants
    	const c1 = 991
    	const c2 float32 = 0.5
    	const c3 = "foo"
    	0 // ERROR "0 (untyped int constant) is not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top