Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,264 for float1 (0.12 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    }
    
    // Return a tensor handle containing a 100x100 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle100x100(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of doubles
    TFE_TensorHandle* DoubleTestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. src/slices/sort_benchmark_test.go

    		b.Run(fmt.Sprintf("Size%d", size), func(b *testing.B) {
    			floats := make([]float64, size)
    			for i := range floats {
    				floats[i] = float64(i)
    			}
    			midpoint := len(floats) / 2
    			needle := (floats[midpoint] + floats[midpoint+1]) / 2
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				slices.BinarySearch(floats, needle)
    			}
    		})
    	}
    }
    
    type myStruct struct {
    	a, b, c, d string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/internal/reflectlite/tostring_test.go

    		return strconv.FormatInt(val.Int(), 10)
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return strconv.FormatUint(val.Uint(), 10)
    	case reflect.Float32, reflect.Float64:
    		return strconv.FormatFloat(val.Float(), 'g', -1, 64)
    	case reflect.Complex64, reflect.Complex128:
    		c := val.Complex()
    		return strconv.FormatFloat(real(c), 'g', -1, 64) + "+" + strconv.FormatFloat(imag(c), 'g', -1, 64) + "i"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue11945.go

    	_ int = real(2.0)
    	_ int = real(3i)
    
    	_ float32 = real(1)
    	_ float32 = real('a')
    	_ float32 = real(2.1)
    	_ float32 = real(3.2i)
    
    	_ float64 = real(1)
    	_ float64 = real('a')
    	_ float64 = real(2.1)
    	_ float64 = real(3.2i)
    
    	_ int = imag(1)
    	_ int = imag('a')
    	_ int = imag(2.1 + 3i)
    	_ int = imag(3i)
    
    	_ float32 = imag(1)
    	_ float32 = imag('a')
    	_ float32 = imag(2.1 + 3.1i)
    	_ float32 = imag(3i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 26 01:50:30 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue9036.go

    // license that can be found in the LICENSE file.
    
    // Expects to see error messages on 'p' exponents
    // for non-hexadecimal floats.
    
    package main
    
    import "fmt"
    
    const (
    	x1 = 1.1    // float
    	x2 = 1e10   // float
    	x3 = 0x1e10 // integer (e is a hex digit)
    )
    
    const x4 = 0x1p10 // valid hexadecimal float
    const x5 = 1p10   // ERROR "'p' exponent requires hexadecimal mantissa|invalid prefix"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 10 18:34:40 UTC 2020
    - 805 bytes
    - Viewed (0)
  6. test/float_lit3.go

    	max64 = two1024 - ulp64
    )
    
    var x = []interface{}{
    	float32(max32 + ulp32/2 - 1),             // ok
    	float32(max32 + ulp32/2 - two128/two256), // ok
    	float32(max32 + ulp32/2),                 // ERROR "constant 3\.40282e\+38 overflows float32|cannot convert.*to type float32"
    
    	float32(-max32 - ulp32/2 + 1),             // ok
    	float32(-max32 - ulp32/2 + two128/two256), // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 16:24:32 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  7. src/math/big/floatmarsh.go

    // to the decoded value.
    func (z *Float) GobDecode(buf []byte) error {
    	if len(buf) == 0 {
    		// Other side sent a nil or default value.
    		*z = Float{}
    		return nil
    	}
    	if len(buf) < 6 {
    		return errors.New("Float.GobDecode: buffer too small")
    	}
    
    	if buf[0] != floatGobVersion {
    		return fmt.Errorf("Float.GobDecode: encoding version %d not supported", buf[0])
    	}
    
    	oldPrec := z.prec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. test/cmplx.go

    // Verify that incorrect invocations of the complex predeclared function are detected.
    // Does not compile.
    
    package main
    
    type (
    	Float32    float32
    	Float64    float64
    	Complex64  complex64
    	Complex128 complex128
    )
    
    var (
    	f32 float32
    	f64 float64
    	F32 Float32
    	F64 Float64
    
    	c64  complex64
    	c128 complex128
    	C64  Complex64
    	C128 Complex128
    )
    
    func F1() int {
    	return 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 21:00:20 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  9. test/abi/idata.go

    	// Use exact fmt formatting if in float64 range (common case):
    	// proceed if f doesn't underflow to 0 or overflow to inf.
    	if x, _ := f.Float64(); f.Sign() == 0 == (x == 0) && !math.IsInf(x, 0) {
    		return fmt.Sprintf("%.6g", x)
    	}
    
    	return "OOPS"
    }
    
    func (x complexVal) String() string { return fmt.Sprintf("(%s + %si)", x.re, x.im) }
    
    func newFloat() *big.Float { return new(big.Float).SetPrec(prec) }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 05 20:11:08 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. test/fixedbugs/bug109.go

    package bug109
    
    func f(a float64) float64 {
    	e := 1.0
    	e = e * a
    	return e
    }
    
    /*
    6g bugs/bug109.go
    bugs/bug109.go:5: illegal types for operand: MUL
    	(<float64>FLOAT64)
    	(<float32>FLOAT32)
    bugs/bug109.go:5: illegal types for operand: AS
    	(<float64>FLOAT64)
    bugs/bug109.go:6: illegal types for operand: RETURN
    	(<float32>FLOAT32)
    	(<float64>FLOAT64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 523 bytes
    - Viewed (0)
Back to top