- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 2,057 for float2 (0.25 sec)
-
src/math/rand/normal.go
x := float64(j) * float64(wn[i]) if absInt32(j) < kn[i] { // This case should be hit better than 99% of the time. return x } if i == 0 { // This extra work is only required for the base strip. for { x = -math.Log(r.Float64()) * (1.0 / rn) y := -math.Log(r.Float64()) if y+y >= x*x { break } } if j > 0 { return rn + x } return -rn - x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutils_test.go
`) abitest(t, ft, exp) } func TestABIUtilsBasic2(t *testing.T) { // func(p1 int8, p2 int16, p3 int32, p4 int64, // p5 float32, p6 float32, p7 float64, p8 float64, // p9 int8, p10 int16, p11 int32, p12 int64, // p13 float32, p14 float32, p15 float64, p16 float64, // p17 complex128, p18 complex128, p19 complex12, p20 complex128, // p21 complex64, p22 int8, p23 in16, p24 int32, p25 int64,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
src/internal/types/testdata/check/typeinst1.go
// term lists. type E0 interface { ~int | ~bool | ~string } type E1 interface { ~int | ~float64 | ~string } type E2 interface { ~float64 } type I0 interface { E0 } func f0[T I0]() {} var _ = f0[int] var _ = f0[bool] var _ = f0[string] var _ = f0[float64 /* ERROR "does not satisfy I0" */ ] type I01 interface { E0 E1 } func f01[T I01]() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5.7K bytes - Viewed (0) -
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) -
test/fixedbugs/bug154.go
package main import "fmt" func f0() string { const f = 3.141592; return fmt.Sprintf("%v", float64(f)); } func f1() string { const f = 3.141592; x := float64(float32(f)); // appears to change the precision of f _ = x; return fmt.Sprintf("%v", float64(f)); } func main() { r0 := f0(); r1 := f1(); if r0 != r1 { println("r0 =", r0); println("r1 =", r1);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 585 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
// If the tensor is a weight, it should have type FLOAT16. // If the tensor is a bias, it should have type FLOAT16. // If the tensor is an input or output it should have type FLOAT32. // The input to dequantize should be FLOAT16, and all other tensors should // be FLOAT32. if (i == dequant_input_idx) { EXPECT_EQ(quant_tensor->type(), TensorType_FLOAT16);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0) -
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) -
src/go/internal/gcimporter/testdata/exports.go
T12 any T13 interface { m1() m2(int) float32 } T14 interface { T12 T13 m3(x ...struct{}) []T9 } T15 func() T16 func(int) T17 func(x int) T18 func() float32 T19 func() (x float32) T20 func(...any) T21 struct{ next *T21 } T22 struct{ link *T23 } T23 struct{ link *T22 } T24 *T24 T25 *T26 T26 *T27 T27 *T25 T28 func(T28) T28 ) var ( V0 int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/dec.rules
(Load <t> ptr mem) && t.IsComplex() && t.Size() == 8 => (ComplexMake (Load <typ.Float32> ptr mem) (Load <typ.Float32> (OffPtr <typ.Float32Ptr> [4] ptr) mem) ) (Store {t} dst (ComplexMake real imag) mem) && t.Size() == 8 => (Store {typ.Float32} (OffPtr <typ.Float32Ptr> [4] dst) imag (Store {typ.Float32} dst real mem)) (Load <t> ptr mem) && t.IsComplex() && t.Size() == 16 => (ComplexMake
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:48:31 UTC 2023 - 6.9K bytes - Viewed (0) -
pkg/test/util/structpath/instance.go
case reflect.Float32, reflect.Float64: return i.equalsNumber(reflect.ValueOf(expected).Float(), path) case reflect.Int, reflect.Int8, reflect.Int32, reflect.Int64: return i.equalsNumber(float64(reflect.ValueOf(expected).Int()), path) case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: return i.equalsNumber(float64(reflect.ValueOf(expected).Uint()), path)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 9.4K bytes - Viewed (0)