- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 216 for arithmetic (0.26 sec)
-
src/internal/types/testdata/check/const0.go
_ = unsafe.Sizeof(func() { type _ [iota /* ERROR "iota outside constant decl" */ ]byte }) _ = unsafe.Sizeof(func() { func() int { return iota /* ERROR "iota outside constant decl" */ }() }) ) // constant arithmetic precision and rounding must lead to expected (integer) results var _ = []int64{ 0.0005 * 1e9, 0.001 * 1e9, 0.005 * 1e9, 0.01 * 1e9, 0.05 * 1e9, 0.1 * 1e9, 0.5 * 1e9, 1 * 1e9, 5 * 1e9,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
tensorflow/cc/framework/ops.h
/// construct an Initializer. Initializer stores the value it got constructed /// with in a Tensor object. struct Initializer { /// Construct from a scalar value of an arithmetic type or a type that can /// be converted to a string (eg. a string literal). template <typename T, typename = typename std::enable_if< std::is_arithmetic<T>::value ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 10.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/arch/arm/armasm/inst.go
// A Shift describes an ARM shift operation. type Shift uint8 const ( ShiftLeft Shift = 0 // left shift ShiftRight Shift = 1 // logical (unsigned) right shift ShiftRightSigned Shift = 2 // arithmetic (signed) right shift RotateRight Shift = 3 // right rotate RotateRightExt Shift = 4 // right rotate through carry (Count will always be 1) ) var shiftName = [...]string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 22:23:32 UTC 2017 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/math/PairedStatsAccumulator.java
// We extend the recursive expression for the one-variable case at Art of Computer Programming // vol. 2, Knuth, 4.2.2, (16) to the two-variable case. We have two value series x_i and y_i. // We define the arithmetic means X_n = 1/n \sum_{i=1}^n x_i, and Y_n = 1/n \sum_{i=1}^n y_i. // We also define the sum of the products of the differences from the means // C_n = \sum_{i=1}^n x_i y_i - n X_n Y_n
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 10.3K bytes - Viewed (0) -
src/image/draw/draw.go
// dr |= dr << 8 // and similarly for dg, db and da, but instead we multiply a // (which is a 16-bit color, ranging in [0,65535]) by 0x101. // This yields the same result, but is fewer arithmetic operations. a := (m - (sa * ma / m)) * 0x101 d[0] = uint8((dr*a + sy*ma) / m >> 8) d[1] = uint8((dg*a + sy*ma) / m >> 8) d[2] = uint8((db*a + sy*ma) / m >> 8) d[3] = uint8((da*a + sa*ma) / m >> 8)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/constFoldGen.go
// Copyright 2016 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. // This program generates a test to verify that the standard arithmetic // operators properly handle constant folding. The test file should be // generated with a known working version of go. // launch with `go run constFoldGen.go` a file called constFold_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 8.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go
// quantity("9999999999999999999999999999999999999G").isInteger() // returns false // quantity("50k").asInteger() == 50000 // returns true // quantity("50k").sub(20000).asApproximateFloat() == 30000 // returns true // // Arithmetic // // - sign: Returns `1` if the quantity is positive, `-1` if it is negative. `0` if it is zero // // - add: Returns sum of two quantities or a quantity and an integer //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 11.2K bytes - Viewed (0) -
src/hash/maphash/maphash.go
// last call to [Hash.Reset] or [Hash.SetSeed]. // // All bits of the Sum64 result are close to uniformly and // independently distributed, so it can be safely reduced // by using bit masking, shifting, or modular arithmetic. func (h *Hash) Sum64() uint64 { h.initSeed() return rthash(h.buf[:h.n], h.state.s) } // MakeSeed returns a new random seed. func MakeSeed() Seed { var s uint64 for { s = randUint64()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 19:15:34 UTC 2023 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/PairedStatsAccumulator.java
// We extend the recursive expression for the one-variable case at Art of Computer Programming // vol. 2, Knuth, 4.2.2, (16) to the two-variable case. We have two value series x_i and y_i. // We define the arithmetic means X_n = 1/n \sum_{i=1}^n x_i, and Y_n = 1/n \sum_{i=1}^n y_i. // We also define the sum of the products of the differences from the means // C_n = \sum_{i=1}^n x_i y_i - n X_n Y_n
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 10.3K bytes - Viewed (0) -
test/shift1.go
_ = 1.1<<s+x == 1.1 // ERROR "truncated|must be integer" _ = 1<<s == x<<s _ = 1.<<s == x<<s _ = 1.1<<s == x<<s // ERROR "truncated|must be integer" ) // shifts as operands in non-arithmetic operations and as arguments func _() { var s uint var a []int _ = a[1<<s] _ = a[1.] _ = a[1.<<s] _ = a[1.1<<s] // ERROR "integer|shift of type float64" _ = make([]int, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 03 16:24:32 UTC 2021 - 9.4K bytes - Viewed (0)