Home
last modified time | relevance | path

Searched +full:array +full:- +full:unique (Results 1 – 25 of 1125) sorted by relevance

12345678910>>...45

/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dunique_op_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
30 y, idx = array_ops.unique(x)
34 self.assertEqual(len(tf_y), len(np.unique(x)))
40 y, idx = array_ops.unique(x, out_idx=dtypes.int64)
44 self.assertEqual(len(tf_y), len(np.unique(x)))
51 y, idx = array_ops.unique(x)
55 self.assertEqual(len(tf_y), len(np.unique(x)))
62 x = np.array([[1, 0, 0], [1, 0, 0], [2, 0, 0]])
63 y0, idx0 = gen_array_ops.unique_v2(x, axis=np.array([0], dtype))
66 y1, idx1 = gen_array_ops.unique_v2(x, axis=np.array([1], dtype))
[all …]
/external/cronet/third_party/libc++/src/test/std/algorithms/alg.modifying.operations/alg.unique/
Dranges_unique.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
15 // constexpr subrange<I> unique(I first, S last, C comp = {}, Proj proj = {}); …
21 // unique(R&& r, C comp = {}, Proj proj = {}); …
24 #include <array>
37 std::ranges::unique(
56 …std::ranges::unique(std::forward<Range>(range), std::forward<Comp>(comp), std::forward<Proj>(proj)…
76 constexpr void testUniqueImpl(std::array<int, N1> input, std::array<int, N2> expected) { in testUniqueImpl()
83 std::ranges::unique(Iter{in.data()}, Sent{Iter{in.data() + in.size()}}); in testUniqueImpl()
[all …]
/external/skia/tests/
DUtilsTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
19 #include <array>
44 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
48 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
51 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
56 REPORTER_ASSERT(reporter, !obj.unique()); in test_autounref()
60 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
66 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
67 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
78 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
[all …]
/external/google-cloud-java/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/
DSpanContext.java8 * https://www.apache.org/licenses/LICENSE-2.0
84 * `[TRACE_ID]` is a unique identifier for a trace within a project;
85 * it is a 32-character hexadecimal encoding of a 16-byte array.
86 * `[SPAN_ID]` is a unique identifier for a span within a trace; it
87 * is a 16-character hexadecimal encoding of an 8-byte array.
112 * `[TRACE_ID]` is a unique identifier for a trace within a project;
113 * it is a 32-character hexadecimal encoding of a 16-byte array.
114 * `[SPAN_ID]` is a unique identifier for a span within a trace; it
115 * is a 16-character hexadecimal encoding of an 8-byte array.
135 private byte memoizedIsInitialized = -1;
[all …]
DSpanContextOrBuilder.java8 * https://www.apache.org/licenses/LICENSE-2.0
32 * `[TRACE_ID]` is a unique identifier for a trace within a project;
33 * it is a 32-character hexadecimal encoding of a 16-byte array.
34 * `[SPAN_ID]` is a unique identifier for a span within a trace; it
35 * is a 16-character hexadecimal encoding of an 8-byte array.
49 * `[TRACE_ID]` is a unique identifier for a trace within a project;
50 * it is a 32-character hexadecimal encoding of a 16-byte array.
51 * `[SPAN_ID]` is a unique identifier for a span within a trace; it
52 * is a 16-character hexadecimal encoding of an 8-byte array.
/external/libcups/cups/
Darray.c2 * Sorted array routines for CUPS.
4 * Copyright 2007-2014 by Apple Inc.
5 * Copyright 1997-2007 by Easy Software Products.
15 #include "string-private.h"
16 #include "debug-internal.h"
17 #include "array-private.h"
31 struct _cups_array_s /**** CUPS array structure ****/
34 * The current implementation uses an insertion sort into an array of
35 * sorted pointers. We leave the array type private/opaque so that we
40 int num_elements, /* Number of array elements */
[all …]
/external/python/cpython3/Doc/library/
Dmultiprocessing.shared_memory.rst1 :mod:`multiprocessing.shared_memory` --- Shared memory for direct access across processes
16 --------------
21 the life-cycle management of shared memory especially across distinct
42 memory block. Each shared memory block is assigned a unique name.
54 *name* is the unique name for the requested shared memory, specified as
94 Read-only access to the unique name of the shared memory block.
98 Read-only access to size in bytes of the shared memory block.
101 The following example demonstrates low-level use of :class:`SharedMemory`
115 >>> import array
116 >>> array.array('b', shm_b.buf[:5]) # Copy the data into a new array.array
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/test/algorithm/
Dtransformation1.cpp2 Copyright (c) 2005-2007 Dan Marsden
3 Copyright (c) 2005-2007 Joel de Guzman
58 int array[] = {1,2,3}; in copy_test() local
61 copy(arg1, arg2)(array, output) == output + 3); in copy_test()
73 int array[] = {1,2,3}; in copy_backward_test() local
77 copy_backward(arg1, arg2)(array, output_end) == output); in copy_backward_test()
99 int array[] = {1,2,3}; in transform_test() local
101 transform(arg1, arg2, increment())(array, array) == in transform_test()
102 array + 3); in transform_test()
103 BOOST_TEST(array[0] == 2); in transform_test()
[all …]
/external/python/google-api-python-client/googleapiclient/discovery_cache/documents/
Dalertcenter.v1beta1.json17 "documentationLink": "https://developers.google.com/admin-sdk/alertcenter/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
162 …"description": "Optional. The unique identifier of the Google Workspace organization account of th…
191 …"description": "Optional. The unique identifier of the Google Workspace organization account of th…
205 …"description": "Returns the metadata of an alert. Attempting to get metadata for a non-existent al…
[all …]
Dvideointelligence.v1p2beta1.json5 "https://www.googleapis.com/auth/cloud-platform": {
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
125 "https://www.googleapis.com/auth/cloud-platform"
143 "type": "array"
[all …]
Dvideointelligence.v1p3beta1.json5 "https://www.googleapis.com/auth/cloud-platform": {
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
125 "https://www.googleapis.com/auth/cloud-platform"
143 "type": "array"
[all …]
Dvideointelligence.v1beta2.json5 "https://www.googleapis.com/auth/cloud-platform": {
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
125 "https://www.googleapis.com/auth/cloud-platform"
143 "type": "array"
[all …]
Dvideointelligence.v1p1beta1.json5 "https://www.googleapis.com/auth/cloud-platform": {
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
125 "https://www.googleapis.com/auth/cloud-platform"
143 "type": "array"
[all …]
Ddns.v1beta2.json5 "https://www.googleapis.com/auth/cloud-platform": {
8 "https://www.googleapis.com/auth/cloud-platform.read-only": {
29 "x16": "http://www.google.com/images/icons/product/search-16.gif",
30 "x32": "http://www.google.com/images/icons/product/search-32.gif"
66 "Responses with Content-Type of application/json",
67 "Media download with context-dependent Content-Type",
68 "Responses with Content-Type of application/x-protobuf"
100 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
130 …n requests only. An optional identifier specified by the client. Must be unique for operation reso…
155 "https://www.googleapis.com/auth/cloud-platform",
[all …]
Dvideointelligence.v1.json5 "https://www.googleapis.com/auth/cloud-platform": {
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
20 "x16": "http://www.google.com/images/icons/product/search-16.gif",
21 "x32": "http://www.google.com/images/icons/product/search-32.gif"
57 "Responses with Content-Type of application/json",
58 "Media download with context-dependent Content-Type",
59 "Responses with Content-Type of application/x-protobuf"
91 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
117 …"description": "Starts asynchronous cancellation on a long-running operation. The server makes a b…
138 "https://www.googleapis.com/auth/cloud-platform"
[all …]
Dadmin.directoryv1.json89 "https://www.googleapis.com/auth/cloud-platform": {
101 "documentationLink": "https://developers.google.com/admin-sdk/",
104 "x16": "http://www.google.com/images/icons/product/search-16.gif",
105 "x32": "http://www.google.com/images/icons/product/search-32.gif"
142 "Responses with Content-Type of application/json",
143 "Media download with context-dependent Content-Type",
144 "Responses with Content-Type of application/x-protobuf"
176 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
206 "description": "The unique ID of the ASP to be deleted.",
213 …quest. The value can be the user's primary email address, alias email address, or unique user ID.",
[all …]
Dadmin.directory_v1.json89 "https://www.googleapis.com/auth/cloud-platform": {
101 "documentationLink": "https://developers.google.com/admin-sdk/",
104 "x16": "http://www.google.com/images/icons/product/search-16.gif",
105 "x32": "http://www.google.com/images/icons/product/search-32.gif"
142 "Responses with Content-Type of application/json",
143 "Media download with context-dependent Content-Type",
144 "Responses with Content-Type of application/x-protobuf"
176 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit…
206 "description": "The unique ID of the ASP to be deleted.",
213 …quest. The value can be the user's primary email address, alias email address, or unique user ID.",
[all …]
/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.h7 http://www.apache.org/licenses/LICENSE-2.0
35 // Abstract subclass for sampling from the set of non-negative integers
50 // If unique=true, then we re-pick each element until we get a
52 void SampleBatch(random::SimplePhilox* rnd, bool unique,
60 // call to this function with the given parameters. If unique=true,
66 // in the aligned array "batch_expected_count".
69 // The expected counts for the extras are reported in the aligned array
75 random::SimplePhilox* rnd, bool unique,
83 // "avoided_values" is only supported with unique=true. If
84 // unique=false, then avoided_values must be empty.
[all …]
/external/apache-xml/src/main/java/org/apache/xml/serializer/dom3/
DNamespaceSupport.java10 * http://www.apache.org/licenses/LICENSE-2.0
30 * as arguments to methods are unique symbols. The SymbolTable class
63 * Namespace binding information. This array is composed of a
73 /** The top of the namespace information array. */
77 // being at least 1. -Ac
80 * Context indexes. This array contains indexes into the namespace
81 * information array. The index at the current context is the start
83 * namespace information array.
132 // extend the array, if necessary in pushContext()
149 fNamespaceSize = fContext[fCurrentContext--]; in popContext()
[all …]
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DPartitionInfo.java34 * in the CLDR data. Each unique combination of variables forms a partition, and
51 // Possible operations to parse from a region expression (e.g. "US+005-BR").
52 private static final CharMatcher REGION_OPS = CharMatcher.anyOf("+-");
70 * Adds a variable expression (e.g. "$foo = "US+005-BR") from CLDR data and
75 * regionSet := region ([-+] region)*
77 * There is no precedence, so "x+y-y+z" is "(((x+y)-y)+z)", and <em>not</em>
78 * "(x+y)-(y+z)".
88 // Add the mappings ("$foo" -> X) and the inverse ("$!foo" -> not(X)). in addVariableExpression()
101 // regions-for("$!foo") == !regions-for("$foo)) in addVariableExpression()
103 // partition-ids-for("$!foo") != !partition-ids-for("$foo") in addVariableExpression()
[all …]
/external/skia/src/core/
DSkPtrRecorder.h4 * Use of this source code is governed by a BSD-style license that can be
19 * Maintains a set of ptrs, assigning each a unique ID [1...N]. Duplicate ptrs
21 * and decPtr(). incPtr() is called each time a unique ptr is added ot the
35 * Add the specified ptr to the set, returning a unique 32bit ID for it
43 * Return the number of (non-null) ptrs in the set.
48 * Copy the ptrs in the set into the specified array (allocated by the
49 * caller). The ptrs are assgined to the array based on their corresponding
50 * ID. e.g. array[ptr.ID - 1] = ptr.
54 void copyToArray(void* array[]) const;
93 // we store the ptrs in sorted-order (using Cmp) so that we can efficiently
[all …]
/external/mesa3d/src/freedreno/ir3/
Dir3_array_to_ssa.c24 /* This pass lowers array accesses to SSA.
27 * the array defined in instr->dsts[0]->def (possibly a phi node), perform the
28 * operation, and store to instr->dsts[0].
32 * out-of-SSA with no copies.) While hopefully they shouldn't induce copies in
39 * definition. However, since we're not doing this on-the-fly we can simplify
40 * things a little by doing a pre-pass to get the last definition of each array
64 return &ctx->states[ctx->array_count * block->index + id]; in get_state()
75 struct array_state *state = get_state(ctx, block, arr->id); in read_value_end()
76 if (state->live_out_definition) in read_value_end()
77 return state->live_out_definition; in read_value_end()
[all …]
/external/pigweed/pw_rpc/pwpb/pw_rpc_pwpb_private/
Dinternal_test_utils.h7 // https://www.apache.org/licenses/LICENSE-2.0
16 #include <array>
27 // of the struct --- ie. exclude the "::Message" suffix.
34 #define _PW_ENCODE_PB_EXPAND(proto, result, unique, ...) \ argument
35 _PW_ENCODE_PB_IMPL(proto, result, unique, __VA_ARGS__)
37 #define _PW_ENCODE_PB_IMPL(proto, result, unique, ...) \ argument
38 std::array<std::byte, 2 * sizeof(proto::Message)> _pb_buffer_##unique{}; \
42 proto::Message{__VA_ARGS__}, _pb_buffer_##unique)
53 // proto namespace is passed, not the name of the struct --- ie. exclude the
/external/aws-sdk-java-v2/services/pinpointsmsvoicev2/src/main/resources/codegen-resources/
Dservice-2.json4 "apiVersion":"2022-03-31",
5 "endpointPrefix":"sms-voice",
11 "signingName":"sms-voice",
13 "uid":"pinpoint-sms-voice-v2-2022-03-31"
88-out list.</p> <p>If the opt-out list name already exists, an error is returned.</p> <p>An opt-out…
107 …entity. This includes keywords, message type, opt-out list, two-way configuration, and self-manage…
181 …increase the <b>VersionNumber</b>. The previous version of the registration becomes read-only.</p>"
233 …sages that you plan to send. If you send account-related messages or time-sensitive messages such …
303 …ting opt-out list. All opted out phone numbers in the opt-out list are deleted.</p> <p>If the spec…
321-out list.</p> <p>Each destination phone number can only be deleted once every 30 days.</p> <p>If …
[all …]
/external/webp/src/utils/
Dpalette.h3 // Use of this source code is governed by a BSD-style license
8 // -----------------------------------------------------------------------------
28 // Methods for Improving the Compression of Color-Indexed Images" by Armando
39 // Sort palette in increasing order and prepare an inverse mapping array.
43 // Returns count of unique colors in 'pic', assuming pic->use_argb is true.
44 // If the unique color count is more than MAX_PALETTE_SIZE, returns
46 // If 'palette' is not NULL and the number of unique colors is less than or
47 // equal to MAX_PALETTE_SIZE, also outputs the actual unique colors into
48 // 'palette' in a sorted order. Note: 'palette' is assumed to be an array

12345678910>>...45