Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for 3xcomplex (0.19 sec)

  1. src/cmd/compile/internal/ir/const.go

    	floatZero   = constant.ToFloat(intZero)
    	complexZero = constant.ToComplex(intZero)
    )
    
    // NewOne returns an OLITERAL representing 1 with the given type.
    func NewOne(pos src.XPos, typ *types.Type) Node {
    	var val constant.Value
    	switch {
    	case typ.IsInteger():
    		val = intOne
    	case typ.IsFloat():
    		val = floatOne
    	case typ.IsComplex():
    		val = complexOne
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/universe.go

    	Uintptr:       {Uintptr, IsInteger | IsUnsigned, "uintptr"},
    	Float32:       {Float32, IsFloat, "float32"},
    	Float64:       {Float64, IsFloat, "float64"},
    	Complex64:     {Complex64, IsComplex, "complex64"},
    	Complex128:    {Complex128, IsComplex, "complex128"},
    	String:        {String, IsString, "string"},
    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/go/types/universe.go

    	Uintptr:       {Uintptr, IsInteger | IsUnsigned, "uintptr"},
    	Float32:       {Float32, IsFloat, "float32"},
    	Float64:       {Float64, IsFloat, "float64"},
    	Complex64:     {Complex64, IsComplex, "complex64"},
    	Complex128:    {Complex128, IsComplex, "complex128"},
    	String:        {String, IsString, "string"},
    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/go/constant/example_test.go

    	negOne := constant.MakeInt64(-1)
    
    	mkComplex := func(a, b constant.Value) constant.Value {
    		b = constant.MakeImag(b)
    		return constant.BinaryOp(a, token.ADD, b)
    	}
    
    	vs := []constant.Value{
    		negOne,
    		mkComplex(zero, negOne),
    		mkComplex(one, negOne),
    		mkComplex(negOne, one),
    		mkComplex(negOne, negOne),
    		zero,
    		mkComplex(zero, zero),
    		one,
    		mkComplex(zero, one),
    		mkComplex(one, one),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/universe.go

    	okforarith [types.NTYPE]bool
    )
    
    var builtinFuncs = [...]struct {
    	name string
    	op   ir.Op
    }{
    	{"append", ir.OAPPEND},
    	{"cap", ir.OCAP},
    	{"clear", ir.OCLEAR},
    	{"close", ir.OCLOSE},
    	{"complex", ir.OCOMPLEX},
    	{"copy", ir.OCOPY},
    	{"delete", ir.ODELETE},
    	{"imag", ir.OIMAG},
    	{"len", ir.OLEN},
    	{"make", ir.OMAKE},
    	{"max", ir.OMAX},
    	{"min", ir.OMIN},
    	{"new", ir.ONEW},
    	{"panic", ir.OPANIC},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/const.go

    			if r != nil {
    				*rounded = r
    				return true
    			}
    		case UntypedFloat:
    			return true
    		default:
    			panic("unreachable")
    		}
    
    	case isComplex(typ):
    		x := constant.ToComplex(x)
    		if x.Kind() != constant.Complex {
    			return false
    		}
    		switch typ.kind {
    		case Complex64:
    			if rounded == nil {
    				return fitsFloat32(constant.Real(x)) && fitsFloat32(constant.Imag(x))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/dec.rules

          mem)
    
    (ComplexReal x:(Load <t> ptr mem)) && t.IsComplex() && t.Size() == 8 => @x.Block (Load <typ.Float32> ptr mem)
    (ComplexImag x:(Load <t> ptr mem)) && t.IsComplex() && t.Size() == 8 => @x.Block (Load <typ.Float32>
          (OffPtr <typ.Float32Ptr> [4] ptr)
          mem)
    
    (ComplexReal x:(Load <t> ptr mem)) && t.IsComplex() && t.Size() == 16 => @x.Block (Load <typ.Float64> ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. src/go/types/basic.go

    type BasicInfo int
    
    // Properties of basic types.
    const (
    	IsBoolean BasicInfo = 1 << iota
    	IsInteger
    	IsUnsigned
    	IsFloat
    	IsComplex
    	IsString
    	IsUntyped
    
    	IsOrdered   = IsInteger | IsFloat | IsString
    	IsNumeric   = IsInteger | IsFloat | IsComplex
    	IsConstType = IsBoolean | IsNumeric | IsString
    )
    
    // A Basic represents a basic type.
    type Basic struct {
    	kind BasicKind
    	info BasicInfo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/go/types/const.go

    			if r != nil {
    				*rounded = r
    				return true
    			}
    		case UntypedFloat:
    			return true
    		default:
    			panic("unreachable")
    		}
    
    	case isComplex(typ):
    		x := constant.ToComplex(x)
    		if x.Kind() != constant.Complex {
    			return false
    		}
    		switch typ.kind {
    		case Complex64:
    			if rounded == nil {
    				return fitsFloat32(constant.Real(x)) && fitsFloat32(constant.Imag(x))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/flex_op_with_complex128.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -emit-select-tf-ops -o - | flatbuffer_to_string - | FileCheck %s
    
    func.func @main(tensor<4xcomplex<f64>>, tensor<4xcomplex<f64>>) -> tensor<4xcomplex<f64>> {
    ^bb0(%arg0: tensor<4xcomplex<f64>>, %arg1: tensor<4xcomplex<f64>>):
    // CHECK:  {
    // CHECK-NEXT:  version: 3,
    // CHECK-NEXT:  operator_codes: [ {
    // CHECK-NEXT:    deprecated_builtin_code: 32,
    // CHECK-NEXT:    custom_code: "FlexAdd",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
Back to top