Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 307 for REAL (0.14 sec)

  1. src/cmd/compile/internal/types2/builtins_test.go

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

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

    	var c64 complex64
    	var c128 complex128
    	_ = real() // ERROR "not enough arguments"
    	_ = real(1, 2) // ERROR "too many arguments"
    	_ = real(10)
    	_ = real(2.7182818)
    	_ = real("foo" /* ERROR "expected complex" */)
    	const _5 = real(1 + 2i)
    	assert(_5 == 1)
    	f32 = _5
    	f64 = _5
    	const _6 = real(0i)
    	assert(_6 == 0)
    	f32 = real(c64)
    	f64 = real(c128)
    	f32 = real /* ERRORx `cannot use .* in assignment` */ (c128)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/graceful_termination_test.go

    					{
    						IP:       "1.1.1.1",
    						Port:     80,
    						Protocol: "udp",
    					}: {}, // udp real server deleted immediately
    				},
    			},
    			err: nil,
    		},
    		{
    			name: "graceful delete, real server mismatch should be no-op",
    			vs: &utilipvs.VirtualServer{
    				Address:  netutils.ParseIPSloppy("1.1.1.1"),
    				Protocol: "tcp",
    				Port:     uint16(80),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11K bytes
    - Viewed (0)
  5. pkg/registry/core/service/ipallocator/bitmap.go

    type dryRunRange struct {
    	real *Range
    }
    
    func (dry dryRunRange) Allocate(ip net.IP) error {
    	return dry.real.allocate(ip, dryRunTrue)
    }
    
    func (dry dryRunRange) AllocateNext() (net.IP, error) {
    	return dry.real.allocateNext(dryRunTrue)
    }
    
    func (dry dryRunRange) Release(ip net.IP) error {
    	return dry.real.release(ip, dryRunTrue)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/S3ClientIntegrationTest.groovy

            awsCredentials     | "authenticated"
            null               | "anonymous"
        }
    
        /**
         * Allows for quickly making real aws requests during development
         */
        @Ignore
        def "should interact with real S3 using KEY/SECRET pair"() {
            DefaultAwsCredentials credentials = new DefaultAwsCredentials()
            String bucketName = System.getenv('G_S3_BUCKET')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/const.go

    }
    
    // truncate Real and Imag parts of Mpcplx to 32-bit or 64-bit
    // precision, according to type; return truncated value. In case of
    // overflow, calls Errorf but does not truncate the input value.
    func trunccmplxlit(v constant.Value, t *types.Type) constant.Value {
    	if t.IsUntyped() {
    		return v
    	}
    
    	fsz := t.Size() / 2
    	return makeComplex(roundFloat(constant.Real(v), fsz), roundFloat(constant.Imag(v), fsz))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    	}, {
    		name:       "invalid Real-Ip",
    		realIP:     "garbage, just garbage!",
    		remoteAddr: "1.2.3.4",
    		expected:   []string{"1.2.3.4"},
    	}, {
    		name:         "invalid Real-Ip with forwarded-for",
    		realIP:       "garbage, just garbage!",
    		forwardedFor: "2.2.2.2",
    		remoteAddr:   "1.2.3.4",
    		expected:     []string{"2.2.2.2", "1.2.3.4"},
    	}, {
    		name:       "valid Real-Ip",
    		realIP:     "2.2.2.2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  9. tensorflow/cc/framework/gradient_checker.cc

    SET_BASE_UNITS_FOR_TYPE(complex128, ({{1, 0}, {0, 1}}));
    
    // SetJacobian sets the jacobian value at the provided row and column from a
    // tensor entry with type T.
    // When T is real, this is a simple assignment that casts the entry into the
    // jacobian type.
    // When T is complex, it assigns the real and complex values to successive rows
    // or columns in the matrix depending on the expand_by_row parameter
    template <typename T, typename JAC_T>
    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/cmd/compile/internal/ssa/rewritedec.go

    func rewriteValuedec_OpComplexReal(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (ComplexReal (ComplexMake real _ ))
    	// result: real
    	for {
    		if v_0.Op != OpComplexMake {
    			break
    		}
    		real := v_0.Args[0]
    		v.copyOf(real)
    		return true
    	}
    	// match: (ComplexReal x:(Load <t> ptr mem))
    	// cond: t.IsComplex() && t.Size() == 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
Back to top