Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 252 for Complex128 (0.19 sec)

  1. test/fixedbugs/issue38117.go

    // cmd/compile erroneously rejected conversions of constant values
    // between int/float and complex types.
    
    package p
    
    const (
    	_ = int(complex64(int(0)))
    	_ = float64(complex128(float64(0)))
    
    	_ = int8(complex128(1000)) // ERROR "overflow|cannot convert"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 433 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/flex_op_with_complex128.mlir

    // CHECK-NEXT:      shape: [ 4 ],
    // CHECK-NEXT:      type: COMPLEX128,
    // CHECK-NEXT:      buffer: 1,
    // CHECK-NEXT:      name: "arg0",
    // CHECK-NEXT:      quantization: {
    // CHECK-EMPTY:
    // CHECK-NEXT:      },
    // CHECK-NEXT:      has_rank: true
    // CHECK-NEXT:    }, {
    // CHECK-NEXT:      shape: [ 4 ],
    // CHECK-NEXT:      type: COMPLEX128,
    // CHECK-NEXT:      buffer: 2,
    // CHECK-NEXT:      name: "arg1",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/issue36233/issue36233.go

    package main
    
    // #include <complex.h>
    import "C"
    
    //export exportComplex64
    func exportComplex64(v complex64) complex64 {
    	return v
    }
    
    //export exportComplex128
    func exportComplex128(v complex128) complex128 {
    	return v
    }
    
    //export exportComplexfloat
    func exportComplexfloat(v C.complexfloat) C.complexfloat {
    	return v
    }
    
    //export exportComplexdouble
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 601 bytes
    - Viewed (0)
  4. test/fixedbugs/issue6247.go

    // Issue 6247: 5g used to be confused by the numbering
    // of floating-point registers.
    
    package main
    
    var p map[string]interface{}
    var v interface{}
    
    func F() {
    	p["hello"] = v.(complex128) * v.(complex128)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 381 bytes
    - Viewed (0)
  5. src/runtime/complex.go

    // The sign of the result is the sign of f.
    func inf2one(f float64) float64 {
    	g := 0.0
    	if isInf(f) {
    		g = 1.0
    	}
    	return copysign(g, f)
    }
    
    func complex128div(n complex128, m complex128) complex128 {
    	var e, f float64 // complex(e, f) = n/m
    
    	// Algorithm for robust complex division as described in
    	// Robert L. Smith: Algorithm 116: Complex division. Commun. ACM 5(8): 435 (1962).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 22:45:17 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  6. test/codegen/mapaccess.go

    	m := make(map[complex128][]complex128, 0)
    	var k complex128 = 0
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] = append(m[k], 1)
    
    	// 386:-".*mapaccess"
    	// amd64:-".*mapaccess"
    	// arm:-".*mapaccess"
    	// arm64:-".*mapaccess"
    	m[k] = append(m[k], 1, 2, 3)
    
    	a := []complex128{7, 8, 9, 0}
    
    	// 386:-".*mapaccess"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:36:38 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  7. test/rename.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func main() {
    	n :=
    		append +
    			bool +
    			byte +
    			complex +
    			complex64 +
    			complex128 +
    			cap +
    			close +
    			delete +
    			error +
    			false +
    			float32 +
    			float64 +
    			imag +
    			int +
    			int8 +
    			int16 +
    			int32 +
    			int64 +
    			len +
    			make +
    			new +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  8. test/typeparam/absdiffimp2.dir/a.go

    package a
    
    import (
    	"math"
    )
    
    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    // numericAbs matches a struct containing a numeric type that has an Abs method.
    type numericAbs[T Numeric] interface {
    	~struct{ Value_ T }
    	Abs() T
    	Value() T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. src/math/cmplx/isinf.go

    package cmplx
    
    import "math"
    
    // IsInf reports whether either real(x) or imag(x) is an infinity.
    func IsInf(x complex128) bool {
    	if math.IsInf(real(x), 0) || math.IsInf(imag(x), 0) {
    		return true
    	}
    	return false
    }
    
    // Inf returns a complex infinity, complex(+Inf, +Inf).
    func Inf() complex128 {
    	inf := math.Inf(1)
    	return complex(inf, inf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 02 22:47:58 UTC 2018
    - 506 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/abiutils_test.go

            IN 15: R{ F7 } spilloffset: 72 typ: float64
            IN 16: R{ F8 F9 } spilloffset: 80 typ: complex128
            IN 17: R{ F10 F11 } spilloffset: 96 typ: complex128
            IN 18: R{ F12 F13 } spilloffset: 112 typ: complex128
            IN 19: R{ } offset: 0 typ: complex128
            IN 20: R{ } offset: 16 typ: complex64
            IN 21: R{ I8 } spilloffset: 128 typ: int8
            IN 22: R{ } offset: 24 typ: int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top