- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 161 for Complex64 (0.17 sec)
-
tensorflow/cc/gradients/math_grad_test.cc
} float RV(const std::vector<float>& v) { return v[random::New64() % v.size()]; } complex64 CRV(const std::vector<complex64>& v) { return v[random::New64() % v.size()]; } complex64 conjugate(const complex64& val) { return complex64(val.real(), -val.imag()); } Scope scope_; }; TEST_F(CWiseUnaryGradTest, Abs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0) -
src/internal/types/testdata/check/const1.go
) const ( _ complex64 = - /* ERROR "overflow" */ (maxFloat32 + delta32) _ complex64 = -maxFloat32 _ complex64 = maxFloat32 _ complex64 = maxFloat32 /* ERROR "overflow" */ + delta32 _ = complex64(- /* ERROR "cannot convert" */ (maxFloat32 + delta32)) _ = complex64(-maxFloat32) _ = complex64(maxFloat32) _ = complex64(maxFloat32 /* ERROR "cannot convert" */ + delta32) )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 8.5K bytes - Viewed (0) -
test/typeparam/issue50193.go
import ( "fmt" ) type Complex interface { ~complex64 | ~complex128 } func zero[T Complex]() T { return T(0) } func pi[T Complex]() T { return T(3.14) } func sqrtN1[T Complex]() T { return T(-1i) } func main() { fmt.Println(zero[complex128]()) fmt.Println(pi[complex128]()) fmt.Println(sqrtN1[complex128]()) fmt.Println(zero[complex64]()) fmt.Println(pi[complex64]())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 599 bytes - Viewed (0) -
test/cmplx.go
// 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 } func F3() (int, int, int) { return 1, 2, 3 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 21:00:20 UTC 2019 - 1.4K bytes - Viewed (0) -
test/typeparam/issue47258.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 686 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/compound_test.go
} } //go:noinline func complex64_ssa(a, b complex64, x bool) complex64 { var c complex64 if x { c = a } else { c = b } return c } //go:noinline func complex128_ssa(a, b complex128, x bool) complex128 { var c complex128 if x { c = a } else { c = b } return c } func testComplex64(t *testing.T) { var a complex64 = 1 + 2i var b complex64 = 3 + 4i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 2.7K bytes - Viewed (0) -
src/internal/types/testdata/check/shifts.go
_ = 1<<1075 /* ERROR "invalid shift" */ _ = 2.0<<1 _ = 1<<1.0 _ = 1<<(1+0i) _ int = 2<<s _ float32 = 2<<s _ complex64 = 2<<s _ int = 2.0<<s _ float32 = 2.0<<s _ complex64 = 2.0<<s _ int = 'a'<<s _ float32 = 'a'<<s _ complex64 = 'a'<<s ) } func shifts1() { // basic non-constant shifts var ( i int u uint _ = 1<<0 _ = 1<<i _ = 1<<u
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 12.7K bytes - Viewed (0) -
test/fixedbugs/issue11590.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 419 bytes - Viewed (0) -
test/fixedbugs/issue19947.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:59:57 UTC 2020 - 677 bytes - Viewed (0) -
test/ken/cplx2.go
Cc = C5 * C6 // MUL(-22,-150) Cd = C5 / C6 // DIV(0.721893,-0.532544) Ce = Cd * C6 // MUL(10,6) sb C5 ) func main() { var r complex64 = 5 + 0i if r != R { println("opcode 1", r, R) panic("fail") } var i complex64 = 6i if i != I { println("opcode 2", i, I) panic("fail") } c1 := r + i if c1 != C1 { println("opcode x", c1, C1) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 1.9K bytes - Viewed (0)