Home
last modified time | relevance | path

Searched +full:fill +full:- +full:range (Results 1 – 25 of 1061) sorted by relevance

12345678910>>...43

/third_party/python/Tools/demo/
Dsortvisu.py8 - an array visualizer with methods that implement basic sorting
12 - a number of sorting algorithms (currently quicksort, insertion sort,
17 - and a ``driver'' class which can be used as a Grail applet or as a
18 stand-alone application.
37 self.frame.pack(fill=X)
61 for i in range(self.size):
90 elif self.speed == "single-step":
108 for i in range(self.size):
111 self.canvas.itemconfig(item, fill='red')
113 self.canvas.itemconfig(item, fill='orange')
[all …]
Dlife.py4 A curses-based version of Conway's Game of Life.
8 R : Fill the board randomly
30 display(update_board) -- If update_board is true, compute the
33 erase() -- clear the entire board
34 make_random() -- fill the board randomly
35 set(y,x) -- set the given cell to Live; doesn't refresh the screen
36 toggle(y,x) -- change the given cell from live to dead, or vice
43 scr -- curses screen object to use for display
44 char -- character used to render live cells (default: '*')
49 self.X, self.Y = X - 2, Y - 2 - 1
[all …]
Dredemo.py14 text="Enter a Perl-style regular expression:")
15 self.promptdisplay.pack(side=TOP, fill=X)
18 self.regexdisplay.pack(fill=X)
24 self.statusdisplay.pack(side=TOP, fill=X)
28 self.labeldisplay.pack(fill=X)
29 self.labeldisplay.pack(fill=X)
32 self.showframe.pack(fill=X, anchor=W)
52 self.stringdisplay.pack(fill=BOTH, expand=1)
56 self.grouplabel.pack(fill=X)
59 self.grouplist.pack(expand=1, fill=BOTH)
[all …]
/third_party/python/Modules/_decimal/tests/
Dformathelper.py2 # Copyright (c) 2008-2012 Stefan Krah. All rights reserved.
29 # Generate PEP-3101 format strings.
42 "chinese", "chinese-simplified", "chinese-traditional", "czech", "danish",
43 "dutch", "belgian", "english", "australian", "canadian", "english-nz",
44 "english-uk", "english-us", "finnish", "french", "french-belgian",
45 "french-canadian", "french-swiss", "german", "german-austrian",
46 "german-swiss", "greek", "hungarian", "icelandic", "italian", "italian-swiss",
47 "japanese", "korean", "norwegian", "norwegian-bokmal", "norwegian-nynorsk",
48 "polish", "portuguese", "portuguese-brazil", "russian", "slovak", "spanish",
49 "spanish-mexican", "spanish-modern", "swedish", "turkish",
[all …]
/third_party/skia/experimental/docs/
Dsvgbaseddoc.htm8 font-family: Helvetica, Arial, sans-serif;
9 font-size: 100%;
17 display: inline-block;
18 border-radius: 3px;
20 font-size: 0.9rem;
23 border-bottom: 1px solid #498b50;
25 -webkit-font-smoothing: antialiased;
26 font-weight: bold;
28 text-align: center;
38 box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1) inset;
[all …]
/third_party/pulseaudio/src/tests/
Dvolume-ui.py156 cm.parse("surround-51")
161 for i in range(cm.channels):
180 for i in range(cm.channels):
192 for i in range(cm.channels):
213 for i in range(cm.channels):
216 vbox.pack_start(channel_labels[i], expand=False, fill=True)
222 vbox.pack_start(channel_scales[i], expand=False, fill=True)
224 channel_dB_labels[i] = gtk.Label("-xxx dB")
226 vbox.pack_start(channel_dB_labels[i], expand=False, fill=True)
230 vbox.pack_start(value_label, expand=False, fill=True)
[all …]
/third_party/rust/rust/library/alloc/src/vec/
Dsplice.rs34 fn next(&mut self) -> Option<Self::Item> { in next()
38 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
45 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
70 // First fill the range left by drain(). in drop()
71 if !self.drain.fill(&mut self.replace_with) { in drop()
80 if !self.drain.fill(&mut self.replace_with) { in drop()
86 // This is a zero-length vector which does not allocate if `lower_bound` was exact. in drop()
91 let filled = self.drain.fill(&mut collected); in drop()
102 /// The range from `self.vec.len` to `self.tail_start` contains elements
104 /// Fill that range as much as possible with new elements from the `replace_with` iterator.
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/syntax_helpers/
Dformat_string.rs8 pub fn is_format_string(string: &ast::String) -> bool { in is_format_string()
27 … // NB: we match against `panic_2015`/`panic_2021` here because they have a special-cased arm for in is_format_string()
42 Fill, enumerator
59 string.escaped_char_ranges(&mut |range, res| char_ranges.push((range, res))); in lex_format_specifiers()
62 .filter_map(|(range, res)| Some((*range, *res.as_ref().ok()?))) in lex_format_specifiers()
65 while let Some((range, first_char)) = chars.next() { in lex_format_specifiers()
67 // Format specifier, see syntax at https://doc.rust-lang.org/std/fmt/index.html#syntax in lex_format_specifiers()
74 callback(range, FormatSpecifier::Open); in lex_format_specifiers()
89 // check for fill/align in lex_format_specifiers()
95 // alignment specifier, first char specifies fill in lex_format_specifiers()
[all …]
/third_party/skia/m133/third_party/externals/expat/expat/doc/
Dok.min.css2-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:conten…
/third_party/skia/third_party/externals/expat/expat/doc/
Dok.min.css2-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:conten…
/third_party/openGLES/extensions/NV/
DNV_fill_rectangle.txt44 rasterized by computing and filling its axis-aligned screen-space bounding
48 that need to be drawn, particularly for a user-interface.
59 (Fixed-Function Primitive Assembly and Rasterization)
69 method for front-facing polygons, back-facing polygons, or both front- and
70 back-facing polygons. <mode> is one of the symbolic constants POINT, LINE,
71 FILL, or FILL_RECTANGLE_NV. Calling PolygonMode with POINT causes certain
78 for subsequent edges.) FILL is the default mode of polygon rasterization,
85 within the primitive if the sample location is inside the window-aligned
87 weights used in attribute interpolation may be outside the range [0,1]
96 frustum or by user clip planes, in an implementation-dependent manner.
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_fill_rectangle.txt44 rasterized by computing and filling its axis-aligned screen-space bounding
48 that need to be drawn, particularly for a user-interface.
59 (Fixed-Function Primitive Assembly and Rasterization)
69 method for front-facing polygons, back-facing polygons, or both front- and
70 back-facing polygons. <mode> is one of the symbolic constants POINT, LINE,
71 FILL, or FILL_RECTANGLE_NV. Calling PolygonMode with POINT causes certain
78 for subsequent edges.) FILL is the default mode of polygon rasterization,
85 within the primitive if the sample location is inside the window-aligned
87 weights used in attribute interpolation may be outside the range [0,1]
96 frustum or by user clip planes, in an implementation-dependent manner.
[all …]
/third_party/openGLES/extensions/ARB/
DARB_clear_buffer_object.txt21 Copyright (c) 2012-2014 The Khronos Group Inc. Copyright terms at
26 Khronos-approved extension specifications are updated in response to
116 To fill all or part of an existing buffer object's data store with a
135 range to fill. Both <offset> and <range> must be multiples of the number
136 of basic machine units per-element for that internal format specified by
139 containing the data to be used as the source of the constant fill value.
142 fill the specified range of the destination buffer. If <data> is NULL, then
143 the pointer is ignored and the sub-range of the buffer is filled with zeros.
150 range of the buffer bound to <target> is currently mapped.
192 (Per-Fragment Operations and the Frame Buffer)
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_clear_buffer_object.txt21 Copyright (c) 2012-2014 The Khronos Group Inc. Copyright terms at
106 To fill all or part of an existing buffer object's data store with a
125 range to fill. Both <offset> and <range> must be multiples of the number
126 of basic machine units per-element for that internal format specified by
129 containing the data to be used as the source of the constant fill value.
132 fill the specified range of the destination buffer. If <data> is NULL, then
133 the pointer is ignored and the sub-range of the buffer is filled with zeros.
140 range of the buffer bound to <target> is currently mapped.
182 (Per-Fragment Operations and the Frame Buffer)
224 specified range of the buffer bound to <target> is currently mapped.
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_pseudocolor.c18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
99 typedef struct Fill { struct
100 float fill[4]; member
101 } Fill; argument
103 typedef struct Range { struct
105 } Range; argument
109 const Range *ranges;
111 const Fill *fills;
114 static const Range full_range = {{0, 1}, {1, 1}};
115 static const Range nominal_range[] = {{{0, 1}, {4096, 65536}}, {{4096, 65536}, {60161, 65536}}, {{6…
[all …]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate06.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * 4. deallocate misaligned part of file range written in step 1
17 * 5. read() the deallocated range and check that it was zeroed
21 * - fill filesystem between step 2 and 3
22 * - disable copy-on-write on test file
23 * - combinations of above subtests
92 * Set FS_NOCOW_FL flag on the temp file. Non-CoW filesystems will in setup()
120 "Error checking copy-on-write support"); in setup()
125 tst_res(TINFO, "Copy-on-write is%s supported", in setup()
130 /* Fill the buffer with known values */ in setup()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/nn/probability/distribution/
Dcategorical.py1 # Copyright 2020-2024 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
36 A Categorical Distribution is a discrete distribution with the range :math:`\{1, 2, ..., k\}`
139 if self.probs.shape[:-1] == ():
141 self._broadcast_shape = self._broadcast_shape[:-1]
143 self.argmax = P.ArgMaxWithValue(axis=-1)
147 self.concat = P.Concat(-1)
171 self.squeeze_last_axis = P.Squeeze(-1)
209 E[X] = \sum_{i=0}^{num_classes-1} i*p_i
212 num_classes = self.shape(probs)[-1]
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/nn/layer/
Dmath.py1 # Copyright 2020-2021 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
31 'Range',
45 -1259.13921672240287047156078755283,
47 -176.61502916214059906584551354,
49 -0.13857109526572011689554707,
50 9.984369578019570859563e-6,
51 1.50563273514931155834e-7]
69 …axis (Union[int, tuple(int), list(int)]) - The dimensions to reduce. Default: ``()`` , reduce all …
76 - **x** (Tensor) - The input tensor. With float16 or float32 data type.
[all …]
/third_party/skia/m133/third_party/externals/icu/source/test/perf/unisetperf/draft/
Dbitset.cpp11 * encoding: UTF-8
18 * Idea for a "compiled", fast, read-only (immutable) version of a UnicodeSet
19 * using a folded bit set consisting of a 1k-entry index table and a
20 * compacted array of 64-bit words.
30 * Hash table for up to 1k 64-bit words, for 1 bit per BMP code point.
31 * Hashes 64-bit words and maps them to 16-bit integers which are
43 // Fill values[] with 0xffff. in BMPBitHash()
77 * Invert the hash map: Fill an array of length countKeys() with the keys
107 prevIndex=-1; in BitSet()
117 // Finish the end of the previous range. in BitSet()
[all …]
/third_party/icu/icu4c/source/test/perf/unisetperf/draft/
Dbitset.cpp11 * encoding: UTF-8
18 * Idea for a "compiled", fast, read-only (immutable) version of a UnicodeSet
19 * using a folded bit set consisting of a 1k-entry index table and a
20 * compacted array of 64-bit words.
30 * Hash table for up to 1k 64-bit words, for 1 bit per BMP code point.
31 * Hashes 64-bit words and maps them to 16-bit integers which are
43 // Fill values[] with 0xffff. in BMPBitHash()
77 * Invert the hash map: Fill an array of length countKeys() with the keys
107 prevIndex=-1; in BitSet()
117 // Finish the end of the previous range. in BitSet()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/runtime/device/
Dtensor_array.cc2 * Copyright 2021-2022 Huawei Technologies Co., Ltd
8 * http://www.apache.org/licenses/LICENSE-2.0
23 if (dtype != dtype_->type_id()) { in CheckValue()
25 << TypeIdLabel(dtype_->type_id()); in CheckValue()
37 MS_LOG(ERROR) << "Index " << index << " out of range " << valid_size_ << ", " << name_; in CheckReadIndexLogical()
46 MS_LOG(EXCEPTION) << "Index " << index << " out of range " << tensors_.size() << ", " << name_; in Read()
48 …MS_LOG(DEBUG) << "Read tensor index = " << index << ", addr = " << tensors_[LongToSize(index)]->ad… in Read()
54 // Case 2: index > valid_size, fill the rest dev_value with zeros, and set valid_size to index + 1.
66 // Create/reuse (index - valid_size) size dev_value with zeros. in Write()
67 // 1 create new mem : index > real_size ? index - real_size : 0 in Write()
[all …]
/third_party/protobuf/third_party/abseil-cpp/absl/random/
Dlog_uniform_int_distribution.h7 // https://www.apache.org/licenses/LICENSE-2.0
35 // Returns a random variate R in range [min, max] such that
36 // floor(log(R-min, base)) is uniformly distributed.
60 range_(static_cast<unsigned_type>(max_) - in min_()
67 // Determine where the first set bit is on range(), giving a log2(range) in min_()
69 log_range_ = (std::min)(random_internal::BitWidth(range()), in min_()
79 // Thus a result which should equal K may equal K +/- epsilon, in min_()
82 const double log_range = std::log(static_cast<double>(range()) + 0.5); in min_()
103 unsigned_type range() const { return range_; } in range() function
108 unsigned_type range_; // max - min
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dlog_uniform_int_distribution.h7 // https://www.apache.org/licenses/LICENSE-2.0
38 // Returns a random variate R in range [min, max] such that
39 // floor(log(R-min, base)) is uniformly distributed.
63 range_(static_cast<unsigned_type>(max_) - in min_()
70 // Determine where the first set bit is on range(), giving a log2(range) in min_()
73 (std::min)(bit_width(range()), in min_()
84 // Thus a result which should equal K may equal K +/- epsilon, in min_()
87 const double log_range = std::log(static_cast<double>(range()) + 0.5); in min_()
108 unsigned_type range() const { return range_; } in range() function
113 unsigned_type range_; // max - min
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DTextureGL.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
31 switch (descriptor->dimension) { in TargetForTexture()
33 if (descriptor->size.depthOrArrayLayers > 1) { in TargetForTexture()
34 ASSERT(descriptor->sampleCount == 1); in TargetForTexture()
37 if (descriptor->sampleCount > 1) { in TargetForTexture()
92 if (texture->GetFormat().format != textureViewDescriptor->format) { in RequiresCreatingNewTextureView()
96 if (texture->GetArrayLayers() != textureViewDescriptor->arrayLayerCount) { in RequiresCreatingNewTextureView()
100 if (texture->GetNumMipLevels() != textureViewDescriptor->mipLevelCount) { in RequiresCreatingNewTextureView()
104 if (ToBackend(texture)->GetGLFormat().format == GL_DEPTH_STENCIL && in RequiresCreatingNewTextureView()
105 (texture->GetUsage() & wgpu::TextureUsage::TextureBinding) != 0 && in RequiresCreatingNewTextureView()
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/
Dformat.rs14 range: TextRange, in highlight_format_string()
23 range: piece_range + range.start(), in highlight_format_string()
31 fn highlight_format_specifier(kind: FormatSpecifier) -> Option<HlTag> { in highlight_format_specifier()
36 | FormatSpecifier::Fill in highlight_format_specifier()

12345678910>>...43