Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for 3xcomplex (0.15 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants_offset.mlir

      func.return %0 : tensor<4xcomplex<f32>>
    }
    
    func.func @complex128() -> tensor<4xcomplex<f64>> {
      // CHECK-LABEL: @complex128
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants.mlir

      func.return %0 : tensor<4xcomplex<f32>>
    }
    
    func.func @complex128() -> tensor<4xcomplex<f64>> {
      // CHECK-LABEL: @complex128
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/text/template/parse/parse_test.go

    			t.Errorf("did not expect float for %q", test.text)
    		}
    		if test.isComplex {
    			if !n.IsComplex {
    				t.Errorf("expected complex for %q", test.text)
    			}
    			if n.Complex128 != test.complex128 {
    				t.Errorf("complex128 for %q should be %g Is %g", test.text, test.complex128, n.Complex128)
    			}
    		} else if n.IsComplex {
    			t.Errorf("did not expect complex for %q", test.text)
    		}
    	}
    }
    
    type parseTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/func.go

    	}
    
    	if !t.ChanDir().CanSend() {
    		base.Errorf("invalid operation: %v (cannot close receive-only channel)", n)
    		n.SetType(nil)
    		return n
    	}
    	return n
    }
    
    // tcComplex typechecks an OCOMPLEX node.
    func tcComplex(n *ir.BinaryExpr) ir.Node {
    	l := Expr(n.X)
    	r := Expr(n.Y)
    	if l.Type() == nil || r.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    	l, r = defaultlit2(l, r, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. src/go/types/builtins_test.go

    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins.go

    				return false
    			}
    			return true
    		}) {
    			return
    		}
    		x.mode = novalue
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(nil, x.typ))
    		}
    
    	case _Complex:
    		// complex(x, y floatT) complexT
    		y := args[1]
    
    		// convert or check untyped arguments
    		d := 0
    		if isUntyped(x.typ) {
    			d |= 1
    		}
    		if isUntyped(y.typ) {
    			d |= 2
    		}
    		switch d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/go/types/builtins.go

    				return false
    			}
    			return true
    		}) {
    			return
    		}
    		x.mode = novalue
    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(nil, x.typ))
    		}
    
    	case _Complex:
    		// complex(x, y floatT) complexT
    		y := args[1]
    
    		// convert or check untyped arguments
    		d := 0
    		if isUntyped(x.typ) {
    			d |= 1
    		}
    		if isUntyped(y.typ) {
    			d |= 2
    		}
    		switch d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/builtins_test.go

    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/text/template/parse/node.go

    			return nil, err
    		}
    		n.IsComplex = true
    		n.simplifyComplex()
    		return n, nil
    	}
    	// Imaginary constants can only be complex unless they are zero.
    	if len(text) > 0 && text[len(text)-1] == 'i' {
    		f, err := strconv.ParseFloat(text[:len(text)-1], 64)
    		if err == nil {
    			n.IsComplex = true
    			n.Complex128 = complex(0, f)
    			n.simplifyComplex()
    			return n, nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. src/go/parser/parser_test.go

    package p
    //
    func f1a(int)
    func f2a(byte, int, float)
    func f3a(a, b int, c float)
    func f4a(...complex)
    func f5a(a s1a, b ...complex)
    //
    func f1b(*int)
    func f2b([]byte, (int), *float)
    func f3b(a, b *int, c []float)
    func f4b(...*complex)
    func f5b(a s1a, b ...[]complex)
    //
    type s1a struct { int }
    type s2a struct { byte; int; s1a }
    type s3a struct { a, b int; c float }
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top