Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 255 for 2xcomplex (0.2 sec)

  1. src/go/types/const.go

    			if r != nil {
    				*rounded = r
    				return true
    			}
    		case UntypedFloat:
    			return true
    		default:
    			panic("unreachable")
    		}
    
    	case isComplex(typ):
    		x := constant.ToComplex(x)
    		if x.Kind() != constant.Complex {
    			return false
    		}
    		switch typ.kind {
    		case Complex64:
    			if rounded == nil {
    				return fitsFloat32(constant.Real(x)) && fitsFloat32(constant.Imag(x))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/flex_op_with_complex128.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -emit-select-tf-ops -o - | flatbuffer_to_string - | FileCheck %s
    
    func.func @main(tensor<4xcomplex<f64>>, tensor<4xcomplex<f64>>) -> tensor<4xcomplex<f64>> {
    ^bb0(%arg0: tensor<4xcomplex<f64>>, %arg1: tensor<4xcomplex<f64>>):
    // CHECK:  {
    // CHECK-NEXT:  version: 3,
    // CHECK-NEXT:  operator_codes: [ {
    // CHECK-NEXT:    deprecated_builtin_code: 32,
    // CHECK-NEXT:    custom_code: "FlexAdd",
    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/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)
  4. 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)
  5. test/cmplx.go

    }
    
    func main() {
    	// ok
    	c64 = complex(f32, f32)
    	c128 = complex(f64, f64)
    
    	_ = complex128(0)     // ok
    	_ = complex(f32, f64) // ERROR "complex"
    	_ = complex(f64, f32) // ERROR "complex"
    	_ = complex(f32, F32) // ERROR "complex"
    	_ = complex(F32, f32) // ERROR "complex"
    	_ = complex(f64, F64) // ERROR "complex"
    	_ = complex(F64, f64) // ERROR "complex"
    
    	_ = complex(F1()) // ERROR "not enough arguments"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 21:00:20 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. test/fixedbugs/bug401.go

    package main
    
    type T struct{}
    
    //go:noinline
    func (T) cplx() complex128 {
    	return complex(1, 0)
    }
    
    func (T) cplx2() complex128 {
    	return complex(0, 1)
    }
    
    type I interface {
    	cplx() complex128
    }
    
    func main() {
    
    	var t T
    
    	if v := real(t.cplx()); v != 1 {
    		panic("not-inlined complex call failed")
    	}
    	_ = imag(t.cplx())
    
    	_ = real(t.cplx2())
    	if v := imag(t.cplx2()); v != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 740 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/func.go

    	}
    
    	if !t.ChanDir().CanSend() {
    		base.Errorf("invalid operation: %v (cannot close receive-only channel)", n)
    		n.SetType(nil)
    		return n
    	}
    	return n
    }
    
    // tcComplex typechecks an OCOMPLEX node.
    func tcComplex(n *ir.BinaryExpr) ir.Node {
    	l := Expr(n.X)
    	r := Expr(n.Y)
    	if l.Type() == nil || r.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    	l, r = defaultlit2(l, r, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top