- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 68 for Rsqrt (0.26 sec)
-
test/typeparam/absdiff3.go
} return } func ComplexAbs[T Complex](a T) T { // TODO use direct conversion instead of realimag once #50937 is fixed r, i := realimag(a) // r := float64(real(a)) // i := float64(imag(a)) d := math.Sqrt(r*r + i*i) return T(complex(d, 0)) } // OrderedAbsDifference returns the absolute value of the difference // between a and b, where a and b are of an ordered type. func OrderedAbsDifference[T OrderedNumeric](a, b T) T {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.6K bytes - Viewed (0) -
tensorflow/cc/framework/cc_ops_test.cc
// y = a * x auto y = MatMul(root.WithOpName("y"), a, x); // y2 = y.^2 auto y2 = Square(root, y); // y2_sum = sum(y2) auto y2_sum = Sum(root, y2, 0); // y_norm = sqrt(y2_sum) auto y_norm = Sqrt(root, y2_sum); // y_normalized = y ./ y_norm auto y_normalized = Div(root.WithOpName("y_normalized"), y, y_norm); Tensor out; test::GetTensor(root, y_normalized, &out);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 8.7K bytes - Viewed (0) -
test/typeparam/absdiffimp2.dir/a.go
} func (a complexAbs[T]) Abs() T { // TODO use direct conversion instead of realimag once #50937 is fixed r, i := realimag(a.Value_) // r := float64(real(a.Value)) // i := float64(imag(a.Value)) d := math.Sqrt(r*r + i*i) return T(complex(d, 0)) } func (a complexAbs[T]) Value() T { return a.Value_ } // OrderedAbsDifference returns the absolute value of the difference
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/typeparam/absdiff.go
// // complex types. // type complexAbs[T Complex] T // // func (a complexAbs[T]) Abs() complexAbs[T] { // r := float64(real(a)) // i := float64(imag(a)) // d := math.Sqrt(r*r + i*i) // return complexAbs[T](complex(d, 0)) // } // // // OrderedAbsDifference returns the absolute value of the difference // // between a and b, where a and b are of an ordered type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.9K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataSeries.java
sumSquares = sumSquares.add(diff); } // This isn't quite right, as we may lose precision when converting to a double BigDecimal result = BigDecimal.valueOf(Math.sqrt(sumSquares.divide(BigDecimal.valueOf(size()), RoundingMode.HALF_UP).doubleValue())).setScale(2, RoundingMode.HALF_UP); standardError = Amount.valueOf(result, baseUnits); } public Amount<Q> getAverage() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.9K bytes - Viewed (0) -
src/math/acosh_s390x.s
FMOVD 0(R3)(R1*1), F3 WFMADB V0, V4, V3, V0 FMOVD 8(R9), F4 FMADD F4, F2, F0 FMOVD F0, ret+8(FP) RET L10: FMOVD F0, F8 FMOVD 0(R9), F0 FMADD F8, F8, F0 LTDBR F0, F0 FSQRT F0, F10 L4: WFADB V10, V8, V0 WORD $0xC0398006 //iilf %r3,2147909631 BYTE $0x7F BYTE $0xFF LGDR F0, R5 SRAD $32, R5 MOVH $0x0, R1 SUBW R5, R3 SRAW $8, R3, R2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 15:34:41 UTC 2019 - 4.3K bytes - Viewed (0) -
src/math/example_test.go
fmt.Printf("%.2f", math.Tan(0)) // Output: 0.00 } func ExampleTanh() { fmt.Printf("%.2f", math.Tanh(0)) // Output: 0.00 } func ExampleSqrt() { const ( a = 3 b = 4 ) c := math.Sqrt(a*a + b*b) fmt.Printf("%.1f", c) // Output: 5.0 } func ExampleCeil() { c := math.Ceil(1.49) fmt.Printf("%.1f", c) // Output: 2.0 } func ExampleFloor() { c := math.Floor(1.51)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:09:53 UTC 2021 - 3.7K bytes - Viewed (0) -
src/math/erfinv.go
r := 0.180625 - 0.25*x*x z1 := ((((((a7*r+a6)*r+a5)*r+a4)*r+a3)*r+a2)*r+a1)*r + a0 z2 := ((((((b7*r+b6)*r+b5)*r+b4)*r+b3)*r+b2)*r+b1)*r + b0 ans = (x * z1) / z2 } else { var z1, z2 float64 r := Sqrt(Ln2 - Log(1.0-x)) if r <= 5.0 { r -= 1.6 z1 = ((((((c7*r+c6)*r+c5)*r+c4)*r+c3)*r+c2)*r+c1)*r + c0 z2 = ((((((d7*r+d6)*r+d5)*r+d4)*r+d3)*r+d2)*r+d1)*r + d0 } else { r -= 5.0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/internal/obj/ppc64/anames.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 18:50:29 UTC 2024 - 6.7K bytes - Viewed (0) -
src/math/acos_s390x.s
BVS L1 FMOVD 16(R9), F10 BR L1 L12: FMOVD 24(R9), F0 FMADD F10, F10, F0 WORD $0xB3130080 //lcdbr %f8,%f0 WORD $0xED009008 //cdb %f0,.L37-.L13(%r9) BYTE $0x00 BYTE $0x19 FSQRT F8, F10 L5: MOVW R12, R4 CMPBLE R4, $0, L7 WORD $0xB31300AA //lcdbr %f10,%f10 FMOVD $0, F1 BR L3 L9: FMOVD 0(R9), F10 BR L1 L8: FMOVD $0, F0 FMOVD F0, ret+8(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 20 17:42:08 UTC 2018 - 3.7K bytes - Viewed (0)