- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 161 for Complex64 (0.51 sec)
-
test/map.go
m[nz] = "-0" if m[pz] != "-0" { panic(fmt.Sprintln("complex64 map does not treat -0 and +0 as equal for write")) } if _, ok := m[nana]; ok { panic(fmt.Sprintln("complex64 map allows NaN lookup (a)")) } if _, ok := m[nanb]; ok { panic(fmt.Sprintln("complex64 map allows NaN lookup (b)")) } if len(m) != 3 { panic(fmt.Sprintln("complex64 map should have 3 entries:", m)) } m[nana] = "NaN"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0) -
src/cmd/vet/testdata/asm/asm.go
// license that can be found in the LICENSE file. // This file contains declarations to test the assembly in asm1.s. package testdata func arg1(x int8, y uint8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 05 01:01:31 UTC 2019 - 310 bytes - Viewed (0) -
tensorflow/cc/framework/gradient_checker_test.cc
TensorShape shape({2, 4, 3}); auto x = Placeholder(scope, DT_COMPLEX64, Placeholder::Shape(shape)); auto y = Square(scope, x); float max_error; TF_ASSERT_OK((ComputeGradientError<complex64, complex64, float>( scope, {x}, {shape}, {y}, {shape}, &max_error))); EXPECT_LT(max_error, 1e-4); } TEST(GradientCheckerTest, BasicComplex128) { Scope scope = Scope::NewRootScope();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 06 15:54:08 UTC 2018 - 6.7K bytes - Viewed (0) -
test/typeparam/absdiff3.go
if a < 0 { return -a } return a } // Complex matches the two complex types, which do not have a < operator. type Complex interface { ~complex64 | ~complex128 } func realimag(x any) (re, im float64) { switch z := x.(type) { case complex64: re = float64(real(z)) im = float64(imag(z)) case complex128: re = real(z) im = imag(z) default: panic("unknown complex type") } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.6K bytes - Viewed (0) -
test/zerodivide.go
// All complex divide by zero should not error. ErrorTest{"complex 0/0", func() { use(c / d) }, ""}, ErrorTest{"complex64 0/0", func() { use(c64 / d64) }, ""}, ErrorTest{"complex128 0/0", func() { use(c128 / d128) }, ""}, ErrorTest{"complex 1/0", func() { use(e / d) }, ""}, ErrorTest{"complex64 1/0", func() { use(e64 / d64) }, ""}, ErrorTest{"complex128 1/0", func() { use(e128 / d128) }, ""}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 5.7K bytes - Viewed (0) -
test/fixedbugs/issue38117.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:59:57 UTC 2020 - 433 bytes - Viewed (0) -
src/internal/types/testdata/check/linalg.go
// It would likely be in a constraints package in the standard library. type Numeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~complex64 | ~complex128 } func DotProduct[T Numeric](s1, s2 []T) T { if len(s1) != len(s2) { panic("DotProduct: slices of unequal length") } var r T for i := range s1 { r += s1[i] * s2[i] } return r
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 2.2K bytes - Viewed (0) -
tensorflow/c/kernels/ops/bitcast.cc
"T: {bfloat16, half, float, double, int64, int32, uint8, uint16, " "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) -
test/fixedbugs/bug334.go
// Copyright 2011 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. // Issue 1716 package main type ( cplx64 complex64 cplx128 complex128 ) func (c cplx64) Foo() {} func (c cplx128) Foo() {} func main() { var c64 cplx128 var c128 cplx64 c64.Foo() c128.Foo() } /*
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 618 bytes - Viewed (0) -
test/noinit.go
var gx float64 var g0 = float64(0) var g1 = float64(1) var ix int var i0 = 0 var i1 = 1 var jx uint var j0 = uint(0) var j1 = uint(1) var cx complex64 var c0 = complex64(0) var c1 = complex64(1) var dx complex128 var d0 = complex128(0) var d1 = complex128(1) var sx []int var s0 = []int{0, 0, 0} var s1 = []int{1, 2, 3} func fi() int { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:57:36 UTC 2023 - 6.8K bytes - Viewed (0)