Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 77 for Complex64 (0.14 sec)

  1. src/text/template/exec.go

    		return false, true
    	}
    	switch val.Kind() {
    	case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
    		truth = val.Len() > 0
    	case reflect.Bool:
    		truth = val.Bool()
    	case reflect.Complex64, reflect.Complex128:
    		truth = val.Complex() != 0
    	case reflect.Chan, reflect.Func, reflect.Pointer, reflect.Interface:
    		truth = !val.IsNil()
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/iimport.go

    	}
    
    	return
    }
    
    func intSize(b *types.Basic) (signed bool, maxBytes uint) {
    	if (b.Info() & types.IsUntyped) != 0 {
    		return true, 64
    	}
    
    	switch b.Kind() {
    	case types.Float32, types.Complex64:
    		return true, 3
    	case types.Float64, types.Complex128:
    		return true, 7
    	}
    
    	signed = (b.Info() & types.IsUnsigned) == 0
    	switch b.Kind() {
    	case types.Int8, types.Uint8:
    		maxBytes = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/stmt0.go

    	switch t := x.(type) {
    	case nil:
    		var v bool = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	case int:
    		var v int = t
    		_ = v
    	case float32, complex64:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	default:
    		var v float32 = t /* ERRORx `cannot use .* in variable declaration` */
    		_ = v
    	}
    
    	var t I
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    }
    
    func asmKindForType(t types.Type, size int) asmKind {
    	switch t := t.Underlying().(type) {
    	case *types.Basic:
    		switch t.Kind() {
    		case types.String:
    			return asmString
    		case types.Complex64, types.Complex128:
    			return asmComplex
    		}
    		return asmKind(size)
    	case *types.Pointer, *types.Chan, *types.Map, *types.Signature:
    		return asmKind(size)
    	case *types.Struct:
    		return asmStruct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. src/text/template/funcs.go

    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return uintKind, nil
    	case reflect.Float32, reflect.Float64:
    		return floatKind, nil
    	case reflect.Complex64, reflect.Complex128:
    		return complexKind, nil
    	case reflect.String:
    		return stringKind, nil
    	}
    	return invalidKind, errBadComparisonType
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/schema/schema_v3b.fbs

    // The type of data stored in a tensor.
    enum TensorType : byte {
      FLOAT32 = 0,
      FLOAT16 = 1,
      INT32 = 2,
      UINT8 = 3,
      INT64 = 4,
      STRING = 5,
      BOOL = 6,
      INT16 = 7,
      COMPLEX64 = 8,
      INT8 = 9,
      FLOAT64 = 10,
      COMPLEX128 = 11,
      UINT64 = 12,
      // Experimental: Resource and variant types are experimental, that are subject
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 14:28:27 UTC 2024
    - 30K bytes
    - Viewed (0)
  7. schema/field.go

    					ef.TagSettings[k] = v
    				}
    			}
    		case reflect.Invalid, reflect.Uintptr, reflect.Array, reflect.Chan, reflect.Func, reflect.Interface,
    			reflect.Map, reflect.Ptr, reflect.Slice, reflect.UnsafePointer, reflect.Complex64, reflect.Complex128:
    			schema.err = fmt.Errorf("invalid embedded struct for %s's field %s, should be struct, but got %v", field.Schema.Name, field.Name, field.FieldType)
    		}
    	}
    
    	return field
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  8. src/go/doc/reader.go

    }
    
    var predeclaredTypes = map[string]bool{
    	"any":        true,
    	"bool":       true,
    	"byte":       true,
    	"comparable": true,
    	"complex64":  true,
    	"complex128": true,
    	"error":      true,
    	"float32":    true,
    	"float64":    true,
    	"int":        true,
    	"int8":       true,
    	"int16":      true,
    	"int32":      true,
    	"int64":      true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/issues_test.go

    	// and is not a constant.
    	var tests = []struct {
    		typ string
    		val string
    	}{
    		{"bool", "false"},
    		{"int", "-1"},
    		{"uint", "1.0"},
    		{"rune", "'a'"},
    		{"float64", "3.5"},
    		{"complex64", "1.25"},
    		{"string", "\"foo\""},
    
    		// some more complex constraints
    		{"~byte", "1"},
    		{"~int | ~float64 | complex128", "1"},
    		{"~uint64 | ~rune", "'X'"},
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/parser.go

    		gccgoBuiltinUINTPTR:    types.Typ[types.Uintptr],
    		gccgoBuiltinBOOL:       types.Typ[types.Bool],
    		gccgoBuiltinSTRING:     types.Typ[types.String],
    		gccgoBuiltinCOMPLEX64:  types.Typ[types.Complex64],
    		gccgoBuiltinCOMPLEX128: types.Typ[types.Complex128],
    		gccgoBuiltinERROR:      types.Universe.Lookup("error").Type(),
    		gccgoBuiltinBYTE:       types.Universe.Lookup("byte").Type(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top