- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 161 for Complex64 (0.41 sec)
-
src/cmd/cgo/internal/testcshared/testdata/issue36233/issue36233.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // #include <complex.h> import "C" //export exportComplex64 func exportComplex64(v complex64) complex64 { return v } //export exportComplex128 func exportComplex128(v complex128) complex128 { return v } //export exportComplexfloat func exportComplexfloat(v C.complexfloat) C.complexfloat {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 601 bytes - Viewed (0) -
tensorflow/cc/framework/gradient_checker.h
/// /// if y = Square(x), where x (and so y) are DT_COMPLEX64, /// <X_T, Y_T, JAC_T> should be <complex64, complex64, float> /// Note that JAC_T is always real-valued, and should be an appropriate /// precision to host the partial derivatives for dy/dx /// /// if y = ComplexAbs(x) where x is DT_COMPLEX64 (so y is DT_FLOAT) /// <X_T, Y_T, JAC_T> should be <complex64, float, float> /// /// if y = Complex(x, x) where x is DT_FLOAT (so y is DT_COMPLEX64)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 15:35:17 UTC 2022 - 2.8K bytes - Viewed (0) -
src/go/parser/testdata/linalg.go2
// 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: Thu Oct 28 15:34:22 UTC 2021 - 2K bytes - Viewed (0) -
test/rename.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
test/typeparam/absdiffimp2.dir/a.go
package a import ( "math" ) type Numeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~complex64 | ~complex128 } // numericAbs matches a struct containing a numeric type that has an Abs method. type numericAbs[T Numeric] interface { ~struct{ Value_ T } Abs() T Value() T }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 2.8K bytes - Viewed (0) -
test/gcgort.go
a[complex64(complex(float32(i), float32(i)))] = complex64(complex(float32(i), float32(i))) + 0.01 runtime.Gosched() } for i := 0; i < mods; i++ { for k, _ := range a { a[k] *= complex(real(a[k])*1.01, imag(a[k])*1.01) } runtime.Gosched() } }, mapPointerKeyT: func() { a := make(map[*complex64]complex64) for i := 0; i < length; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 08 21:15:48 UTC 2018 - 34.5K bytes - Viewed (0) -
src/go/types/builtins_test.go
{"imag", `var c complex64; _ = imag(c)`, `func(complex64) float32`}, {"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`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.9K bytes - Viewed (0) -
test/fixedbugs/issue16949.go
sink = make([]byte, 1+0i) sink = make([]byte, complex64(1+0i)) // ERROR "non-integer.*len|must be integer" sink = make([]byte, complex128(1+0i)) // ERROR "non-integer.*len|must be integer" sink = make([]byte, 0, 1+0i) sink = make([]byte, 0, complex64(1+0i)) // ERROR "non-integer.*cap|must be integer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:56:19 UTC 2020 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins_test.go
{"imag", `var c complex64; _ = imag(c)`, `func(complex64) float32`}, {"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`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 18:06:31 UTC 2024 - 10.8K bytes - Viewed (0) -
test/typeparam/absdiff.go
package main type Numeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~complex64 | ~complex128 } // numericAbs matches numeric types with an Abs method. type numericAbs[T any] interface { Numeric Abs() T } // AbsDifference computes the absolute value of the difference of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.9K bytes - Viewed (0)