Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for fComplex128 (0.21 sec)

  1. src/internal/types/testdata/check/builtins0.go

    	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)
    	const _ complex128 = complex(1, 0)
    	const _ = complex(0i, 0i)
    	const _ = complex(0i, 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)
  2. src/go/constant/example_test.go

    	}
    	C := complex(Ar, Ai)
    
    	fmt.Println("literal", 25.3+55i)
    	fmt.Println("go/constant", c)
    	fmt.Println("complex128", C)
    
    	// Output:
    	//
    	// Could not represent real part 25.3 exactly as float64
    	// literal (25.3+55i)
    	// go/constant (25.3 + 55i)
    	// complex128 (25.299999999999997+55i)
    }
    
    func ExampleBinaryOp() {
    	// 11 / 0.5
    	a := constant.MakeUint64(11)
    	b := constant.MakeFloat64(0.5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/strconv/atoc.go

    			return nil, x
    		}
    	}
    	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)
  4. src/runtime/testdata/testprog/panicprint.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func int64tofloat32(int64) float32
    func uint64tofloat64(uint64) float64
    func uint64tofloat32(uint64) float32
    func uint32tofloat64(uint32) float64
    
    func complex128div(num complex128, den complex128) (quo complex128)
    
    func getcallerpc() uintptr
    func getcallersp() uintptr
    
    // race detection
    func racefuncenter(uintptr)
    func racefuncexit()
    func raceread(uintptr)
    func racewrite(uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/runtime/error.go

    	case abi.Float64:
    		print(typestring, "(", *(*float64)(eface.data), ")")
    	case abi.Complex64:
    		print(typestring, *(*complex64)(eface.data))
    	case abi.Complex128:
    		print(typestring, *(*complex128)(eface.data))
    	default:
    		print("(", typestring, ") ", eface.data)
    	}
    }
    
    // printindented prints s, replacing "\n" with "\n\t".
    func printindented(s string) {
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/universe.go

    	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)
  8. src/go/types/universe.go

    	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)
  9. tensorflow/cc/framework/gradient_checker.cc

    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)
  10. src/go/types/api_test.go

    		{`package e5; const _ = complex64(-1e-200)`, `complex64(-1e-200)`, `complex64`, `(0 + 0i)`},
    		{`package e6; const _ = complex128( 1e-2000)`, `complex128(1e-2000)`, `complex128`, `(0 + 0i)`},
    		{`package e7; const _ = complex128(-1e-2000)`, `complex128(-1e-2000)`, `complex128`, `(0 + 0i)`},
    
    		{`package f0 ; var _ float32 =  1e-200`, `1e-200`, `float32`, `0`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top