Home
last modified time | relevance | path

Searched refs:nums (Results 1 – 25 of 92) sorted by relevance

1234

/external/tensorflow/tensorflow/python/kernel_tests/
Dmap_fn_test.py56 nums = [1, 2, 3, 4, 5, 6]
57 elems = constant_op.constant(nums, name="data")
61 np.array([(x + 3) * 2 for x in nums]), self.evaluate(r))
133 nums = np.array([1, 2, 3, 4, 5, 6])
135 lambda x: math_ops.multiply(math_ops.add(x, 3), 2), nums)
137 np.array([(x + 3) * 2 for x in nums]), self.evaluate(r))
141 nums = np.array([1, 2, 3, 4, 5, 6])
144 nums,
150 self.assertAllEqual((nums + 3) * 2, received[0])
151 self.assertAllEqual(-(nums + 3) * 2, received[1])
[all …]
/external/skqp/experimental/canvaskit/htmlcanvas/
Dcolor.js71 var nums = colorStr.split(',');
72 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
73 valueOrPercent(nums[3]));
77 var nums = colorStr.split(',');
79 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
80 valueOrPercent(nums[3]));
/external/pdfium/xfa/fgas/crt/
Dcfgas_decimal.cpp34 inline uint8_t decimal_helper_div10_any(uint64_t nums[], uint8_t numcount) { in decimal_helper_div10_any() argument
37 nums[i - 1] += FXMATH_DECIMAL_LSHIFT32BIT(nums[i] % 0xA); in decimal_helper_div10_any()
38 nums[i] /= 0xA; in decimal_helper_div10_any()
41 retVal = nums[0] % 0xA; in decimal_helper_div10_any()
42 nums[0] /= 0xA; in decimal_helper_div10_any()
55 inline void decimal_helper_mul10_any(uint64_t nums[], uint8_t numcount) { in decimal_helper_mul10_any() argument
56 nums[0] *= 0xA; in decimal_helper_mul10_any()
58 nums[i] = nums[i] * 0xA + FXMATH_DECIMAL_RSHIFT32BIT(nums[i - 1]); in decimal_helper_mul10_any()
59 nums[i - 1] = (uint32_t)nums[i - 1]; in decimal_helper_mul10_any()
74 inline void decimal_helper_normalize_any(uint64_t nums[], uint8_t len) { in decimal_helper_normalize_any() argument
[all …]
/external/boringssl/src/util/fipstools/acvp/modulewrapper/
Dmodulewrapper.cc65 uint32_t nums[1 + kMaxArgs]; in WriteReply() local
67 nums[0] = spans.size(); in WriteReply()
68 iovs[0].iov_base = nums; in WriteReply()
73 nums[i + 1] = span.size(); in WriteReply()
237 uint32_t nums[1 + kMaxArgs]; in main() local
243 if (!ReadAll(STDIN_FILENO, nums, sizeof(uint32_t) * 2)) { in main()
247 const size_t num_args = nums[0]; in main()
259 !ReadAll(STDIN_FILENO, &nums[2], sizeof(uint32_t) * (num_args - 1))) { in main()
265 const size_t arg_length = nums[i + 1]; in main()
302 args[i] = Span<const uint8_t>(&buf[offset], nums[i + 1]); in main()
[all …]
/external/clang/test/Analysis/inlining/
Dstl.cpp8 void testVector(std::vector<int> &nums) { in testVector() argument
9 if (nums.begin()) return; in testVector()
10 if (nums.end()) return; in testVector()
12 clang_analyzer_eval(nums.size() == 0); in testVector()
/external/tensorflow/tensorflow/python/ops/
Dmath_ops_test.py386 nums = np.arange(-10, 10, 1).reshape(20, 1)
388 return nums, divs
391 nums = np.arange(-10, 10, .25).reshape(80, 1)
393 return nums, divs
396 nums, divs = self.intTestData()
399 tf_result = math_ops.floormod(nums, divs)
400 np_result = nums % divs
404 nums, divs = self.floatTestData()
405 tf_result = math_ops.floormod(nums, divs)
406 np_result = nums % divs
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_defun_op_test.py57 nums = [[1, 2], [3, 4], [5, 6]]
58 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
72 nums = [[1, 2], [3, 4], [5, 6]]
73 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
85 nums = [1, 2, 3, 4, 5, 6]
86 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
99 nums = [[1, 2], [3, 4], [5, 6]]
100 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
112 nums = [[1, 2], [3, 4], [5, 6]]
113 elems = constant_op.constant(nums, dtype=dtypes.int32, name="data")
[all …]
/external/guava/android/guava/src/com/google/common/math/
DBigIntegerMath.java390 static BigInteger listProduct(List<BigInteger> nums) { in listProduct() argument
391 return listProduct(nums, 0, nums.size()); in listProduct()
394 static BigInteger listProduct(List<BigInteger> nums, int start, int end) { in listProduct() argument
399 return nums.get(start); in listProduct()
401 return nums.get(start).multiply(nums.get(start + 1)); in listProduct()
403 return nums.get(start).multiply(nums.get(start + 1)).multiply(nums.get(start + 2)); in listProduct()
407 return listProduct(nums, start, m).multiply(listProduct(nums, m, end)); in listProduct()
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java390 static BigInteger listProduct(List<BigInteger> nums) { in listProduct() argument
391 return listProduct(nums, 0, nums.size()); in listProduct()
394 static BigInteger listProduct(List<BigInteger> nums, int start, int end) { in listProduct() argument
399 return nums.get(start); in listProduct()
401 return nums.get(start).multiply(nums.get(start + 1)); in listProduct()
403 return nums.get(start).multiply(nums.get(start + 1)).multiply(nums.get(start + 2)); in listProduct()
407 return listProduct(nums, start, m).multiply(listProduct(nums, m, end)); in listProduct()
/external/skia/modules/canvaskit/
Dhelper.js66 var nums = colorStr.split(',');
67 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
68 valueOrPercent(nums[3]));
72 var nums = colorStr.split(',');
74 return CanvasKit.Color(+nums[0], +nums[1], +nums[2],
75 valueOrPercent(nums[3]));
/external/lua/src/
Dltable.c219 static unsigned int computesizes (unsigned int nums[], unsigned int *pna) { in computesizes() argument
229 if (nums[i] > 0) { in computesizes()
230 a += nums[i]; in computesizes()
243 static int countint (const TValue *key, unsigned int *nums) { in countint() argument
246 nums[luaO_ceillog2(k)]++; /* count as such */ in countint()
259 static unsigned int numusearray (const Table *t, unsigned int *nums) { in numusearray() argument
278 nums[lg] += lc; in numusearray()
285 static int numusehash (const Table *t, unsigned int *nums, unsigned int *pna) { in numusehash() argument
292 ause += countint(gkey(n), nums); in numusehash()
398 unsigned int nums[MAXABITS + 1]; in rehash() local
[all …]
/external/llvm/test/DebugInfo/X86/
Ddbg-value-inlined-parameter.ll15 ; CHECK: DW_AT_abstract_origin {{.*}} "nums"
25 ; CHECK: DW_AT_name {{.*}} "nums"
39 ;CHECK: DW_AT_abstract_origin {{.*}} "nums"
46 define i32 @foo(%struct.S1* nocapture %sp, i32 %nums) nounwind optsize ssp !dbg !0 {
49 …tail call void @llvm.dbg.value(metadata i32 %nums, i64 0, metadata !18, metadata !DIExpression()),…
51 store i32 %nums, i32* %tmp2, align 4, !dbg !22
52 %call = tail call float* @bar(i32 %nums) nounwind optsize, !dbg !27
94 !17 = !DIDerivedType(tag: DW_TAG_member, name: "nums", line: 3, size: 32, align: 32, offset: 64, fi…
95 !18 = !DILocalVariable(name: "nums", line: 7, arg: 2, scope: !0, file: !1, type: !5)
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/X86/
Ddbg-value-inlined-parameter.ll15 ; CHECK: DW_AT_abstract_origin {{.*}} "nums"
25 ; CHECK: DW_AT_name {{.*}} "nums"
39 ;CHECK: DW_AT_abstract_origin {{.*}} "nums"
49 define i32 @foo(%struct.S1* nocapture %sp, i32 %nums) #0 !dbg !15 {
52 tail call void @llvm.dbg.value(metadata i32 %nums, metadata !21, metadata !22), !dbg !24
54 store i32 %nums, i32* %tmp2, align 4, !dbg !25
55 %call = tail call float* @bar(i32 %nums) #3, !dbg !27
102 !12 = !DIDerivedType(tag: DW_TAG_member, name: "nums", scope: !3, file: !3, line: 3, baseType: !13,…
111 !21 = !DILocalVariable(name: "nums", arg: 2, scope: !15, file: !3, line: 7, type: !13)
/external/bc/
Dkaratsuba.py76 nums = [] variable
164 nums.append(i)
168 nums = nums[0:i] variable
173 opt = nums[times.index(min(times))]
/external/clang/test/Analysis/
Dcxx-crashes.cpp63 int nums[n]; in vla() local
64 nums[0] = 1; in vla()
65 clang_analyzer_eval(nums[0] == 1); // expected-warning{{TRUE}} in vla()
/external/fonttools/Lib/fontTools/ttLib/tables/
DF__e_a_t.py29 (fid, nums, _, offset, flags, lid) = struct.unpack(">LHHLHH",
33 (fid, nums, offset, flags, lid) = struct.unpack(">HHLHH",
36 allfeats.append((fid, nums, offset, flags, lid))
37 maxsetting = max(maxsetting, offset + nums)
45 (fid, nums, offset, flags, lid) = f
53 for i in range(offset, offset + nums):
/external/fonttools/Snippets/
Dsubset-fpgm.py48 nums = sorted(funcs.keys()) variable
49 asm.extend(str(i) for i in nums)
50 for i in nums:
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-flow-20.kt12 val nums = (1..3).asFlow() // numbers 1..3 in <lambda>() constant
14 nums.zip(strs) { a, b -> "$a -> $b" } // compose a single string in <lambda>()
Dexample-flow-21.kt12 val nums = (1..3).asFlow().onEach { delay(300) } // numbers 1..3 every 300 ms in <lambda>() constant
15 nums.zip(strs) { a, b -> "$a -> $b" } // compose a single string with "zip" in <lambda>()
Dexample-flow-22.kt12 val nums = (1..3).asFlow().onEach { delay(300) } // numbers 1..3 every 300 ms in <lambda>() constant
15 nums.combine(strs) { a, b -> "$a -> $b" } // compose a single string with "combine" in <lambda>()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DListViewActivity.java74 ArrayList<Number> nums = new ArrayList<Number>(); in getView() local
76 nums.add(generator.nextFloat()); in getView()
87 … XYSeries series = new SimpleXYSeries(nums, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "S" + k); in getView()
/external/bc/tests/bc/
Dtimeconst.sh64 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc)
66 for i in $nums; do
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java687 Collection<Integer> nums = Arrays.asList(1, 5); in testIn_apply() local
688 Predicate<Integer> isOneOrFive = Predicates.in(nums); in testIn_apply()
697 Collection<Integer> nums = ImmutableSet.of(1, 5); in testIn_equality() local
704 Predicates.in(nums), in testIn_equality()
705 Predicates.in(nums), in testIn_equality()
727 Collection<Integer> nums = new CollectionThatThrowsNPE<>(); in testIn_handlesNullPointerException() local
728 Predicate<Integer> isFalse = Predicates.in(nums); in testIn_handlesNullPointerException()
741 Collection<Integer> nums = new CollectionThatThrowsCCE<>(); in testIn_handlesClassCastException() local
742 nums.add(3); in testIn_handlesClassCastException()
743 Predicate<Integer> isThree = Predicates.in(nums); in testIn_handlesClassCastException()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DPredicatesTest.java687 Collection<Integer> nums = Arrays.asList(1, 5); in testIn_apply() local
688 Predicate<Integer> isOneOrFive = Predicates.in(nums); in testIn_apply()
697 Collection<Integer> nums = ImmutableSet.of(1, 5); in testIn_equality() local
704 Predicates.in(nums), in testIn_equality()
705 Predicates.in(nums), in testIn_equality()
727 Collection<Integer> nums = new CollectionThatThrowsNPE<>(); in testIn_handlesNullPointerException() local
728 Predicate<Integer> isFalse = Predicates.in(nums); in testIn_handlesNullPointerException()
741 Collection<Integer> nums = new CollectionThatThrowsCCE<>(); in testIn_handlesClassCastException() local
742 nums.add(3); in testIn_handlesClassCastException()
743 Predicate<Integer> isThree = Predicates.in(nums); in testIn_handlesClassCastException()
[all …]
/external/python/cpython3/Lib/ctypes/
D_aix.py65 nums = []
68 nums.insert(0, int(parts.pop()))
71 return nums or [maxsize]

1234