Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for Complex64 (0.18 sec)

  1. src/go/types/builtins_test.go

    	{"imag", `var c complex64; _ = imag(c)`, `func(complex64) float32`},
    	{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`},
    	{"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`},
    	{"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`},
    
    	{"real", `_ = real(1i)`, `invalid type`}, // constant
    	{"real", `var c complex64; _ = real(c)`, `func(complex64) float32`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins_test.go

    	{"imag", `var c complex64; _ = imag(c)`, `func(complex64) float32`},
    	{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`},
    	{"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`},
    	{"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`},
    
    	{"real", `_ = real(1i)`, `invalid type`}, // constant
    	{"real", `var c complex64; _ = real(c)`, `func(complex64) float32`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/decls1.go

    	t6 byte = array[t1]
    	t7 byte = array[x /* ERROR "must be integer" */]
    	t8 *int = & /* ERRORx `cannot use .* variable declaration` */ a
    	t10 *int = &42 /* ERROR "cannot take address" */
    	t11 *complex64 = &v
    	t12 complex64 = -(u + *t11) / *&v
    	t13 int = a /* ERROR "shifted operand" */ << d
    	t14 int = i << j
    	t15 math /* ERROR "math is not a type" */
    	t16 math.xxx /* ERROR "undefined" */
    	t17 math /* ERROR "not a type" */ .Pi
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/strconv/ctoa.go

    // It rounds the result assuming that the original was obtained from a complex
    // value of bitSize bits, which must be 64 for complex64 and 128 for complex128.
    func FormatComplex(c complex128, fmt byte, prec, bitSize int) string {
    	if bitSize != 64 && bitSize != 128 {
    		panic("invalid bitSize")
    	}
    	bitSize >>= 1 // complex64 uses float32 internally
    
    	// Check if imaginary part has a sign. If not, add one.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. src/strconv/atoc.go

    		}
    	}
    	return err, nil
    }
    
    // ParseComplex converts the string s to a complex number
    // with the precision specified by bitSize: 64 for complex64, or 128 for complex128.
    // When bitSize=64, the result still has type complex128, but it will be
    // convertible to complex64 without changing its value.
    //
    // The number represented by s must be of the form N, Ni, or N±Ni, where N stands
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/gradient_checker.cc

    INSTANTIATE_GRAD_ERR_TYPE(float, float, float);
    INSTANTIATE_GRAD_ERR_TYPE(double, float, double);
    INSTANTIATE_GRAD_ERR_TYPE(double, double, double);
    INSTANTIATE_GRAD_ERR_TYPE(complex64, float, float);
    INSTANTIATE_GRAD_ERR_TYPE(float, complex64, float);
    INSTANTIATE_GRAD_ERR_TYPE(complex64, complex64, float);
    INSTANTIATE_GRAD_ERR_TYPE(complex128, complex128, double);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/ops/bitcast.cc

          "T: {bfloat16, half, float, double, int64, int32, uint8, uint16, "
          "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)
  8. src/encoding/gob/encgen.go

    	zero    string
    	encoder string
    }
    
    var types = []Type{
    	{
    		"bool",
    		"Bool",
    		"false",
    		`if x {
    			state.encodeUint(1)
    		} else {
    			state.encodeUint(0)
    		}`,
    	},
    	{
    		"complex64",
    		"Complex64",
    		"0+0i",
    		`rpart := floatBits(float64(real(x)))
    		ipart := floatBits(float64(imag(x)))
    		state.encodeUint(rpart)
    		state.encodeUint(ipart)`,
    	},
    	{
    		"complex128",
    		"Complex128",
    		"0+0i",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/builtins0.go

    	var _ complex64 = complex(f32, f32)
    	var _ complex64 = complex /* ERRORx `cannot use .* in variable declaration` */ (f64, f64)
    
    	var _ complex128 = complex /* ERRORx `cannot use .* in variable declaration` */ (f32, f32)
    	var _ complex128 = complex(f64, f64)
    
    	// untyped constants
    	const _ int = complex(1, 0)
    	const _ float32 = complex(1, 0)
    	const _ complex64 = complex(1, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprog/panicprint.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type MyBool bool
    type MyComplex128 complex128
    type MyComplex64 complex64
    type MyFloat32 float32
    type MyFloat64 float64
    type MyInt int
    type MyInt8 int8
    type MyInt16 int16
    type MyInt32 int32
    type MyInt64 int64
    type MyString string
    type MyUint uint
    type MyUint8 uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top