Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 95 for fComplex128 (0.29 sec)

  1. src/encoding/gob/encode.go

    	f := v.Float()
    	if f != 0 || state.sendZero {
    		bits := floatBits(f)
    		state.update(i)
    		state.encodeUint(bits)
    	}
    }
    
    // encComplex encodes the complex value (complex64 complex128) referenced by v.
    // Complex numbers are just a pair of floating-point numbers, real part first.
    func encComplex(i *encInstr, state *encoderState, v reflect.Value) {
    	c := v.Complex()
    	if c != 0+0i || state.sendZero {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/go/types/sizes.go

    	Int8:       1,
    	Int16:      2,
    	Int32:      4,
    	Int64:      8,
    	Uint8:      1,
    	Uint16:     2,
    	Uint32:     4,
    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

        case toco::IODataType::STRING:
          return DT_STRING;
        case toco::IODataType::BOOL:
          return DT_BOOL;
        case toco::IODataType::COMPLEX64:
          return DT_COMPLEX64;
        case toco::IODataType::COMPLEX128:
          return DT_COMPLEX128;
        case toco::IODataType::RESOURCE:
          return DT_RESOURCE;
        case toco::IODataType::VARIANT:
          return DT_VARIANT;
        default:
          return DT_INVALID;
      }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/runtime/map_test.go

    	b.Run("Str", runWith(benchmarkMapDeleteStr, 100, 1000, 10000))
    	b.Run("Pointer", runWith(benchmarkMapDeletePointer, 100, 1000, 10000))
    }
    
    func TestDeferDeleteSlow(t *testing.T) {
    	ks := []complex128{0, 1, 2, 3}
    
    	m := make(map[any]int)
    	for i, k := range ks {
    		m[k] = i
    	}
    	if len(m) != len(ks) {
    		t.Errorf("want %d elements, got %d", len(ks), len(m))
    	}
    
    	func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	{x: []float64{1.414}, y: []float64{1.414}},
    
    	{x: complex64(1.414), y: complex64(1.414)},
    	{x: []complex64{1.414}, y: []complex64{1.414}},
    	{x: complex128(1.414), y: complex128(1.414)},
    	{x: []complex128{1.414}, y: []complex128{1.414}},
    
    	{x: true, y: true},
    	{x: []bool{true}, y: []bool{true}},
    
    	{x: "abcdef", y: "abcdef"},
    	{x: []string{"abcdef"}, y: []string{"abcdef"}},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. src/fmt/fmt_test.go

    	renamedUint64     uint64
    	renamedUintptr    uintptr
    	renamedString     string
    	renamedBytes      []byte
    	renamedFloat32    float32
    	renamedFloat64    float64
    	renamedComplex64  complex64
    	renamedComplex128 complex128
    )
    
    func TestFmtInterface(t *testing.T) {
    	var i1 any
    	i1 = "abc"
    	s := Sprintf("%s", i1)
    	if s != "abc" {
    		t.Errorf(`Sprintf("%%s", empty("abc")) = %q want %q`, s, "abc")
    	}
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/typecheck.go

    	types.TINT32:      "int32",
    	types.TUINT32:     "uint32",
    	types.TINT64:      "int64",
    	types.TUINT64:     "uint64",
    	types.TUINTPTR:    "uintptr",
    	types.TCOMPLEX64:  "complex64",
    	types.TCOMPLEX128: "complex128",
    	types.TFLOAT32:    "float32",
    	types.TFLOAT64:    "float64",
    	types.TBOOL:       "bool",
    	types.TSTRING:     "string",
    	types.TPTR:        "pointer",
    	types.TUNSAFEPTR:  "unsafe.Pointer",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    		n.SetType(nil)
    		return n
    
    	case types.TIDEAL:
    		t = types.UntypedComplex
    
    	case types.TFLOAT32:
    		t = types.Types[types.TCOMPLEX64]
    
    	case types.TFLOAT64:
    		t = types.Types[types.TCOMPLEX128]
    	}
    	n.SetType(t)
    	return n
    }
    
    // tcCopy typechecks an OCOPY node.
    func tcCopy(n *ir.BinaryExpr) ir.Node {
    	n.SetType(types.Types[types.TINT])
    	n.X = Expr(n.X)
    	n.X = DefaultLit(n.X, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/encoding/gob/encoder_test.go

    		int64(-1234567),
    		uint(123),
    		uint8(123),
    		uint16(12345),
    		uint32(123456),
    		uint64(1234567),
    		uintptr(12345678),
    		float32(1.2345),
    		float64(1.2345678),
    		complex64(1.2345 + 2.3456i),
    		complex128(1.2345678 + 2.3456789i),
    		[]byte("hello"),
    		string("hello"),
    	}
    	for _, value := range values {
    		b := new(bytes.Buffer)
    		enc := NewEncoder(b)
    		err := enc.Encode(value)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/size.go

    	case TFLOAT64:
    		w = 8
    		t.align = uint8(RegSize)
    		t.floatRegs = 1
    		t.setAlg(AFLOAT64)
    
    	case TCOMPLEX64:
    		w = 8
    		t.align = 4
    		t.floatRegs = 2
    		t.setAlg(ACPLX64)
    
    	case TCOMPLEX128:
    		w = 16
    		t.align = uint8(RegSize)
    		t.floatRegs = 2
    		t.setAlg(ACPLX128)
    
    	case TPTR:
    		w = int64(PtrSize)
    		t.intRegs = 1
    		CheckSize(t.Elem())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top