Home
last modified time | relevance | path

Searched +full:is +full:- +full:generator +full:- +full:function (Results 1 – 25 of 1403) sorted by relevance

12345678910>>...57

/aosp_15_r20/external/python/cpython3/Doc/reference/
Dexpressions.rst16 .. productionlist:: python-grammar
32 implementation for built-in types works as follows:
34 * If either argument is a complex number, the other is converted to complex;
36 * otherwise, if either argument is a floating point number, the other is
39 * otherwise, both must be integers and no conversion is necessary.
55 also categorized syntactically as atoms. The syntax for atoms is:
57 .. productionlist:: python-grammar
63 .. _atom-identifiers:
66 -------------------
70 An identifier occurring as an atom is a name. See section :ref:`identifiers`
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/kernel_tests/random/
H A Dstateful_random_ops_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
63 """Tests `create_rng_state` when `seed` is int."""
70 [0] * (random.PHILOX_STATE_SIZE - 2))),
79 tensors = [array_ops.reshape(t, shape=[-1]) for t in tensors]
87 This test is flaky, but with very low probability of failing.
103 gen = random.Generator.from_seed(1234)
116 @def_function.function
133 gen = random.Generator.from_seed(1234) # gen is on CPU
141 g = random.Generator.from_seed(1)
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/spirit/doc/karma/
Dnumeric.qbk2 Copyright (C) 2001-2011 Hartmut Kaiser
3 Copyright (C) 2001-2011 Joel de Guzman
38 The `uint_generator` class is the simplest among the members of the
40 arbitrary length and size. The `uint_generator` generator can be used to
45 The `uint_generator` is a template class. Template parameters fine tune its behavior.
69 platforms where the preprocessor constant `BOOST_HAS_LONG_LONG` is
73 [note `lit` is reused by the [karma_string String Generators], the
75 general, a char generator is created when you pass in a
76 character, a string generator is created when you pass in a string, and a
77 numeric generator is created when you use a numeric literal.]
[all …]
Dauxiliary.qbk2 Copyright (C) 2001-2011 Hartmut Kaiser
3 Copyright (C) 2001-2011 Joel de Guzman
23 [section:attr_cast Attribute Transformation Pseudo Generator (`attr_cast`)]
27 The `attr_cast<Exposed, Transformed>()` component invokes the embedded generator
58 generator `g`.] [__unused_type__]]
61 The `attr_cast` is a function template. It is possible to invoke it using the
76 [[`g`] [A generator object.]]
81 Semantics of an expression is defined only where it differs from, or is
87 generator `g` while passing an attribute of the type
92 This generator does not fail unless `g` fails.]]
[all …]
Dwarming_up.qbk2 Copyright (C) 2001-2011 Joel de Guzman
3 Copyright (C) 2001-2011 Hartmut Kaiser
11 Learning how to use __karma__ is really simple. We will start from trivial
17 Let's create a generator that will output a floating-point number:
22 generator (a built-in generator). Spirit has many pre-defined generators and
24 Especially important to note is that things related to identical entities (as
27 refer to a floating point generator or parser: `double_`.
32 Now, let's create a generator that will output a line consisting of two
33 floating-point numbers.
37 Here you see the familiar floating-point numeric generator `double_` used twice,
[all …]
/aosp_15_r20/external/python/cpython2/Doc/reference/
Dexpressions.rst36 coercion rules listed at :ref:`coercion-rules`. If both arguments are standard
39 * If either argument is a complex number, the other is converted to complex;
41 * otherwise, if either argument is a floating point number, the other is
44 * otherwise, if either argument is a long integer, the other is converted to
47 * otherwise, both must be plain integers and no conversion is necessary.
63 atoms is:
72 .. _atom-identifiers:
75 -------------------
81 An identifier occurring as an atom is a name. See section :ref:`identifiers`
87 When the name is bound to an object, evaluation of the atom yields that object.
[all …]
/aosp_15_r20/external/python/cpython3/Doc/howto/
Dfunctional.rst11 :term:`iterator`\s and :term:`generator`\s and relevant library modules such as
20 skip to the next section on :ref:`functional-howto-iterators`.
30 perform the computation efficiently. SQL is the declarative language you're
35 * **Object-oriented** programs manipulate collections of objects. Objects have
37 some way. Smalltalk and Java are object-oriented languages. C++ and Python
38 are languages that support object-oriented programming, but don't force the
39 use of object-oriented features.
43 internal state that affects the output produced for a given input. Well-known
50 multi-paradigm languages that support several different approaches.
51 Lisp, C++, and Python are multi-paradigm; you can write programs or
[all …]
/aosp_15_r20/external/python/cpython2/Doc/howto/
Dfunctional.rst11 :term:`iterator`\s and :term:`generator`\s and relevant library modules such as
30 perform the computation efficiently. SQL is the declarative language you're
35 * **Object-oriented** programs manipulate collections of objects. Objects have
37 some way. Smalltalk and Java are object-oriented languages. C++ and Python
38 are languages that support object-oriented programming, but don't force the
39 use of object-oriented features.
43 internal state that affects the output produced for a given input. Well-known
49 use a different approach. Other languages are multi-paradigm languages that
51 multi-paradigm; you can write programs or libraries that are largely
52 procedural, object-oriented, or functional in all of these languages. In a
[all …]
/aosp_15_r20/external/python/cpython2/Doc/library/
Drandom.rst1 :mod:`random` --- Generate pseudo-random numbers
5 :synopsis: Generate pseudo-random numbers with various common distributions.
9 --------------
11 This module implements pseudo-random number generators for various
15 of a random element, a function to generate a random permutation of a list
16 in-place, and a function for random sampling without replacement.
20 distributions of angles, the von Mises distribution is available.
22 Almost all module functions depend on the basic function :func:`.random`, which
23 generates a random float uniformly in the semi-open range [0.0, 1.0). Python
24 uses the Mersenne Twister as the core generator. It produces 53-bit precision
[all …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/include/c++/4.8.3/tr1/
Drandom.h1 // random number generation -*- C++ -*-
3 // Copyright (C) 2009-2013 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
11 // This library is distributed in the hope that it will be useful,
27 * This is an internal header file, included by other library headers.
49 * Implementation-space details. in _GLIBCXX_VISIBILITY()
67 // Dispatch based on modulus value to prevent divide-by-zero compile-time in _GLIBCXX_VISIBILITY()
78 * An adaptor class for converting the output of any Generator into in _GLIBCXX_VISIBILITY()
114 __return_value = std::numeric_limits<result_type>::max() - 1; in _GLIBCXX_VISIBILITY()
119 * Converts a value generated by the adapted random number generator in _GLIBCXX_VISIBILITY()
[all …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/tr1/
Drandom.h1 // random number generation -*- C++ -*-
3 // Copyright (C) 2009-2013 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
11 // This library is distributed in the hope that it will be useful,
27 * This is an internal header file, included by other library headers.
49 * Implementation-space details. in _GLIBCXX_VISIBILITY()
67 // Dispatch based on modulus value to prevent divide-by-zero compile-time in _GLIBCXX_VISIBILITY()
78 * An adaptor class for converting the output of any Generator into in _GLIBCXX_VISIBILITY()
114 __return_value = std::numeric_limits<result_type>::max() - 1; in _GLIBCXX_VISIBILITY()
119 * Converts a value generated by the adapted random number generator in _GLIBCXX_VISIBILITY()
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/test-exports/common_os/include/external/icu/icu4c/source/i18n/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/common_os/include/external/icu/libandroidicu/include/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/external/icu/icu4c/source/i18n/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/external/icu/libicu/cts_headers/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/external/icu/libandroidicu/include/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/external/cronet/third_party/icu/source/i18n/unicode/
H A Dudatpg.h6 * Copyright (C) 2007-2015, International Business Machines
11 * encoding: UTF-8
35 * like "yy-MM-dd". The user can build up the generator by adding successive
36 * patterns. Once that is done, a query can be made using a "skeleton", which is
37 * a pattern which just includes the desired fields and lengths. The generator
39 * <p>The main method people will use is udatpg_getBestPattern, since normally
40 * UDateTimePatternGenerator is pre-built with data from a particular locale.
42 * <p><i>Issue: may be useful to also have a function that returns the list of
48 * Opaque type for a date/time pattern generator object.
56 * because some fields are merged for the date/time pattern generator.
[all …]
/aosp_15_r20/packages/modules/NeuralNetworks/common/random/
Drandom_distributions.h7 http://www.apache.org/licenses/LICENSE-2.0
10 distributed under the License is distributed on an "AS IS" BASIS,
19 // This include is needed in order to prevent a build error when including
33 #pragma clang diagnostic ignored "-Wunused-parameter"
34 #pragma clang diagnostic ignored "-Winvalid-partial-specialization"
46 // Helper function to convert a 16-bit integer to a half between [0..1).
48 // Helper function to convert a 16-bit integer to a bfloat16 between [0..1).
50 // Helper function to convert a 32-bit integer to a float between [0..1).
52 // Helper function to convert two 32-bit integers to a double between [0..1).
55 // Computes a + b. Requires that the result is representable in the destination
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/iterator/doc/
Dgenerator_iterator.htm1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <meta http-equiv="Content-Language" content="en-us">
6 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
8 <title>Generator Iterator Adaptor Documentation</title>
15 <h1>Generator Iterator Adaptor</h1>
20 <p>The generator iterator adaptor makes it easier to create custom input
21 iterators from 0-ary functions and function objects. The adaptor takes a
22 <a href="http://www.sgi.com/tech/stl/Generator.html">Generator</a> and
25 increment retrieves an item from the generator and makes it available to be
26 retrieved by dereferencing. The motivation for this iterator is that some
[all …]
/aosp_15_r20/external/federated-compute/fcp/secagg/server/
H A Dsecagg_scheduler.h8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
36 // Simple callback waiter that runs the function on Wakeup.
39 explicit CallbackWaiter(std::function<void()> callback) in CallbackWaiter()
45 std::function<void()> callback_;
68 std::function<std::unique_ptr<T>(const T&, const T&)> accumulator_func, in Accumulator()
77 inline static std::function<void()> GetParallelScheduleFunc( in GetParallelScheduleFunc()
79 std::function<std::unique_ptr<T>()> generator) { in GetParallelScheduleFunc() argument
80 return [accumulator, generator] { in GetParallelScheduleFunc()
81 // Increment active count if the accumulator is not canceled, otherwise in GetParallelScheduleFunc()
[all …]
/aosp_15_r20/external/sandboxed-api/sandboxed_api/tools/generator2/
H A Dcode_test.py7 # https://www.apache.org/licenses/LICENSE-2.0
10 # distributed under the License is distributed on an "AS IS" BASIS,
77 function_body = 'extern "C" int function(bool a1) { return a1 ? 1 : 2; }'
81 # cursor.get_definition() is None when we skip parsing function bodies
85 translation_unit = analyze_string('extern "C" int function(char* a);')
104 function_body = 'extern "C" int function(bool a1) { return a1 ? 1 : 2; }'
108 fn = code.Function(translation_unit, cursor)
129 generator = code.Generator([analyze_string(body)])
130 result = generator.generate('Test', functions, 'sapi::Tests', None, None)
136 extern "C" int function(struct x a) { return a.a; }
[all …]
/aosp_15_r20/external/python/cpython3/Doc/library/
Dinspect.rst1 :mod:`inspect` --- Inspect live objects
7 .. moduleauthor:: Ka-Ping Yee <[email protected]>
8 .. sectionauthor:: Ka-Ping Yee <[email protected]>
12 --------------
18 and format the argument list for a function, or get all the information you need
26 .. _inspect-types:
29 -----------------
31 The :func:`getmembers` function retrieves the members of an object such as a
32 class or module. The functions whose names begin with "is" are mainly
35 attributes (see :ref:`import-mod-attrs` for module attributes):
[all …]
/aosp_15_r20/external/skia/src/sksl/codegen/
H A DSkSLRasterPipelineCodeGenerator.cpp4 * Use of this source code is governed by a BSD-style license that can be
92 class Generator;
117 * Associates previously-created slots with an SkSL variable; this can allow multiple variables
133 * Looks up the slots associated with an SkSL function's return value; creates the range if
134 * necessary. Note that recursion is never supported, so we don't need to maintain return values
135 * in a stack; we can just statically allocate one slot per function call-site.
151 * Creates a temporary stack. The caller is responsible for discarding every entry on this
152 * stack before ~AutoStack is reached.
154 explicit AutoStack(Generator* g);
160 /** Undoes a call to `enter`, returning to the previously-active stack. */
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/internal/
Dconformance_testing.h7 // https://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
15 // -----------------------------------------------------------------------------
17 // -----------------------------------------------------------------------------
27 // "Regularity Profile" that describes what operations that type `T` is //
92 // A "make" function for the GeneratorType template that deduces the function
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator() function
100 // A type that contains a set of nullary function objects that each return an
102 // representations, such as +0 and -0 or two vectors with the same elements but
109 // A "make" function for the EquivalenceClassType template that deduces the
[all …]
/aosp_15_r20/external/webrtc/third_party/abseil-cpp/absl/types/internal/
H A Dconformance_testing.h7 // https://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
15 // -----------------------------------------------------------------------------
17 // -----------------------------------------------------------------------------
27 // "Regularity Profile" that describes what operations that type `T` is //
92 // A "make" function for the GeneratorType template that deduces the function
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator() function
100 // A type that contains a set of nullary function objects that each return an
102 // representations, such as +0 and -0 or two vectors with the same elements but
109 // A "make" function for the EquivalenceClassType template that deduces the
[all …]

12345678910>>...57