- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 95 for fComplex128 (0.24 sec)
-
src/go/types/builtins_test.go
{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`}, {"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`}, {"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`}, {"real", `_ = real(1i)`, `invalid type`}, // constant {"real", `var c complex64; _ = real(c)`, `func(complex64) float32`}, {"real", `var c complex128; _ = real(c)`, `func(complex128) 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) -
src/cmd/compile/internal/types2/builtins_test.go
{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`}, {"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`}, {"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`}, {"real", `_ = real(1i)`, `invalid type`}, // constant {"real", `var c complex64; _ = real(c)`, `func(complex64) float32`}, {"real", `var c complex128; _ = real(c)`, `func(complex128) 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) -
src/internal/types/testdata/check/builtins0.go
var _ complex128 = complex /* ERRORx `cannot use .* in variable declaration` */ (f32, f32) var _ complex128 = complex(f64, f64) // untyped constants const _ int = complex(1, 0) const _ float32 = complex(1, 0) const _ complex64 = complex(1, 0) const _ complex128 = complex(1, 0) const _ = complex(0i, 0i) const _ = complex(0i, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/strconv/ctoa.go
// It rounds the result assuming that the original was obtained from a complex // value of bitSize bits, which must be 64 for complex64 and 128 for complex128. func FormatComplex(c complex128, fmt byte, prec, bitSize int) string { if bitSize != 64 && bitSize != 128 { panic("invalid bitSize") } bitSize >>= 1 // complex64 uses float32 internally
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1K bytes - Viewed (0) -
src/go/constant/example_test.go
} C := complex(Ar, Ai) fmt.Println("literal", 25.3+55i) fmt.Println("go/constant", c) fmt.Println("complex128", C) // Output: // // Could not represent real part 25.3 exactly as float64 // literal (25.3+55i) // go/constant (25.3 + 55i) // complex128 (25.299999999999997+55i) } func ExampleBinaryOp() { // 11 / 0.5 a := constant.MakeUint64(11) b := constant.MakeFloat64(0.5)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0) -
src/strconv/atoc.go
return nil, x } } return err, nil } // ParseComplex converts the string s to a complex number // with the precision specified by bitSize: 64 for complex64, or 128 for complex128. // When bitSize=64, the result still has type complex128, but it will be // convertible to complex64 without changing its value. // // The number represented by s must be of the form N, Ni, or N±Ni, where N stands
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/c/kernels/ops/bitcast.cc
"uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, " "qint16, quint16, qint32}"); TF_OpDefinitionBuilderAddAttr( op_builder, "type: {bfloat16, half, float, double, int64, int32, uint8, uint16, " "uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, " "qint16, quint16, qint32}");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 07:51:50 UTC 2024 - 5.1K bytes - Viewed (0) -
src/internal/types/testdata/check/decls1.go
import ( "math" ) // Global variables without initialization var ( a, b bool c byte d uint8 r rune i int j, k, l int x, y float32 xx, yy float64 u, v complex64 uu, vv complex128 s, t string array []byte iface interface{} blank _ /* ERROR "cannot use _" */ ) // Global variables with initialization var ( s1 = i + j s2 = i /* ERROR "mismatched types" */ + x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.8K bytes - Viewed (0) -
src/encoding/gob/encgen.go
}, { "complex64", "Complex64", "0+0i", `rpart := floatBits(float64(real(x))) ipart := floatBits(float64(imag(x))) state.encodeUint(rpart) state.encodeUint(ipart)`, }, { "complex128", "Complex128", "0+0i", `rpart := floatBits(real(x)) ipart := floatBits(imag(x)) state.encodeUint(rpart) state.encodeUint(ipart)`, }, { "float32", "Float32", "0",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:39:09 UTC 2024 - 3.8K bytes - Viewed (0) -
src/runtime/testdata/testprog/panicprint.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type MyBool bool type MyComplex128 complex128 type MyComplex64 complex64 type MyFloat32 float32 type MyFloat64 float64 type MyInt int type MyInt8 int8 type MyInt16 int16 type MyInt32 int32 type MyInt64 int64 type MyString string type MyUint uint
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 2.2K bytes - Viewed (0)