Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for 3xcomplex (0.31 sec)

  1. src/cmd/compile/internal/types/universe.go

    		IsInt[et] = true
    	}
    	IsInt[TINT] = true
    	IsInt[TUINT] = true
    	IsInt[TUINTPTR] = true
    
    	IsFloat[TFLOAT32] = true
    	IsFloat[TFLOAT64] = true
    
    	IsComplex[TCOMPLEX64] = true
    	IsComplex[TCOMPLEX128] = true
    }
    
    func makeErrorInterface() *Type {
    	sig := NewSignature(FakeRecv(), nil, []*Field{
    		NewField(src.NoXPos, nil, Types[TSTRING]),
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/go/types/gcsizes.go

    		panic("unreachable")
    	}
    	a := s.Sizeof(T) // may be 0 or negative
    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    		return 1
    	}
    	// complex{64,128} are aligned like [2]float{32,64}.
    	if isComplex(T) {
    		a /= 2
    	}
    	if a > s.MaxAlign {
    		return s.MaxAlign
    	}
    	return a
    }
    
    func (s *gcSizes) Offsetsof(fields []*Var) []int64 {
    	offsets := make([]int64, len(fields))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/const0.go

    	uc16 = uc2 /* ERROR "not defined" */ & uc3
    	uc17 = uc2 /* ERROR "not defined" */ | uc3
    	uc18 = uc2 /* ERROR "not defined" */ ^ uc3
    )
    
    type (
    	mybool bool
    	myint int
    	myfloat float64
    	mycomplex complex128
    )
    
    // typed constants
    const (
    	// boolean values
    	tb0 bool = false
    	tb1 bool = true
    	tb2 mybool = 2 < 1
    	tb3 mybool = ti1 == tf1 /* ERROR "mismatched types" */
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_trait_folds.mlir

      %0 = "tf.Conj"(%arg0) : (tensor<complex<f32>>) -> tensor<complex<f32>>
      %1 = "tf.Conj"(%0) : (tensor<complex<f32>>) -> tensor<complex<f32>>
      // CHECK: return [[ARG0]]
      func.return %1: tensor<complex<f32>>
    }
    
    // CHECK-LABEL: func @testTripleConj
    // CHECK-SAME:  ([[ARG0:%.+]]: tensor<complex<f32>>)
    func.func @testTripleConj(%arg0: tensor<complex<f32>>) -> tensor<complex<f32>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. src/reflect/benchmark_test.go

    	}
    	type Int512 struct {
    		a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 [16]S
    	}
    	s := struct {
    		ArrayComparable      [4]T
    		ArrayIncomparable    [4]_Complex
    		StructComparable     T
    		StructIncomparable   _Complex
    		ArrayInt_4           [4]int
    		ArrayInt_1024        [1024]int
    		ArrayInt_1024_NoZero [1024]int
    		Struct4Int           Int4
    		ArrayStruct4Int_1024 [256]Int4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. src/go/types/conversions.go

    				return true
    			}
    		}
    	}
    
    	// "V and T are both integer or floating point types"
    	if isIntegerOrFloat(Vu) && isIntegerOrFloat(Tu) {
    		return true
    	}
    
    	// "V and T are both complex types"
    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. test/typeparam/absdiff3.go

    		return -a
    	}
    	return a
    }
    
    // Complex matches the two complex types, which do not have a < operator.
    type Complex interface {
    	~complex64 | ~complex128
    }
    
    func realimag(x any) (re, im float64) {
    	switch z := x.(type) {
    	case complex64:
    		re = float64(real(z))
    		im = float64(imag(z))
    	case complex128:
    		re = real(z)
    		im = imag(z)
    	default:
    		panic("unknown complex type")
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/testdata/linalg.go

    type OrderedNumeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		float32 | ~float64
    }
    
    // Complex is a type bound that matches the two complex types, which do not have a < operator.
    type Complex interface {
    	~complex64 | ~complex128
    }
    
    // OrderedAbs is a helper type that defines an Abs method for
    // ordered numeric types.
    type OrderedAbs[T OrderedNumeric] T
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  9. test/typeparam/absdiff2.go

    type orderedNumeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64
    }
    
    // Complex matches the two complex types, which do not have a < operator.
    type Complex interface {
    	~complex64 | ~complex128
    }
    
    // orderedAbs is a helper type that defines an Abs method for
    // a struct containing an ordered numeric type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. test/typeparam/issue50193.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    type Complex interface {
    	~complex64 | ~complex128
    }
    
    func zero[T Complex]() T {
    	return T(0)
    }
    func pi[T Complex]() T {
    	return T(3.14)
    }
    func sqrtN1[T Complex]() T {
    	return T(-1i)
    }
    
    func main() {
    	fmt.Println(zero[complex128]())
    	fmt.Println(pi[complex128]())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 599 bytes
    - Viewed (0)
Back to top