Home
last modified time | relevance | path

Searched refs:from_index (Results 1 – 17 of 17) sorted by relevance

/external/rust/crates/plotters/src/coord/ranged1d/
Ddiscrete.rs37 fn from_index(&self, index: usize) -> Option<Self::ValueType>; in from_index() method
61 return self.from_index(idx - 1); in previous()
79 return self.from_index(idx + 1); in next()
149 &self.0.from_index(idx + 1).unwrap(), in map()
188 fn from_index(&self, idx: usize) -> Option<Self::ValueType> { in from_index() method
190 idx if idx < self.0.size() => self.0.from_index(idx).map(SegmentValue::Exact), in from_index()
207 self.from_index(idx) in unmap()
222 self.0.from_index(idx) in next()
252 match coord.from_index(i as usize) { in test_centric_coord()
/external/rust/crates/plotters/src/coord/ranged1d/combinators/
Dgroup_by.rs53 fn from_index(&self, index: usize) -> Option<Self::ValueType> { in from_index() method
54 self.0.from_index(index * self.1) in from_index()
98 .map(|x| self.0.from_index(x).unwrap()) in key_points()
103 .map(|x| self.0.from_index(x * self.1).unwrap()) in key_points()
117 assert_eq!(coord.from_index(idx as usize), Some(val)); in test_group_by()
Dckps.rs89 fn from_index(&self, index: usize) -> Option<Self::ValueType> { in from_index() function
90 self.inner.from_index(index) in from_index()
209 fn from_index(&self, index: usize) -> Option<Self::ValueType> { in from_index() method
210 self.inner.from_index(index) in from_index()
234 assert_eq!(range.from_index(10), Some(10)); in test_with_key_points()
262 assert_eq!(range.from_index(10), Some(10)); in test_with_key_point_method()
Dnested.rs122 NestedValue::Value(self.primary.from_index(idx).unwrap(), v) in key_points()
149 fn from_index(&self, mut index: usize) -> Option<Self::ValueType> { in from_index() method
153 self.primary.from_index(p_idx).unwrap(), in from_index()
154 snd.from_index(index).unwrap(), in from_index()
202 assert_eq!(coord.from_index(24), Some(NestedValue::Value(5, 4))); in test_nested_coord()
Dpartial_axis.rs68 fn from_index(&self, index: usize) -> Option<Self::ValueType> { in from_index() function
69 self.0.from_index(index) in from_index()
Dlinspace.rs317 fn from_index(&self, idx: usize) -> Option<T::ValueType> { in from_index() function
359 assert_eq!(coord.index_of(&coord.from_index(230).unwrap()), Some(230)); in test_float_linspace()
360 assert!((coord.from_index(230).unwrap() - 23.0).abs() < 1e-5); in test_float_linspace()
427 assert_eq!(coord.index_of(&coord.from_index(230).unwrap()), Some(230)); in test_duration_linspace()
/external/skia/modules/skottie/src/animator/
DShapeKeyframeAnimator.cpp130 const auto from_index = kFloatsPerVertex * from_vertex, in operator SkPath() local
133 const SkPoint p0 = SkPoint{ (*this)[from_index + kX_Index], in operator SkPath()
134 (*this)[from_index + kY_Index] }, in operator SkPath()
137 c0 = SkPoint{ (*this)[from_index + kOutX_Index], in operator SkPath()
138 (*this)[from_index + kOutY_Index] } + p0, in operator SkPath()
/external/python/cpython2/Tools/scripts/
Dmailerdaemon.py96 from_index = len(data)
98 from_index = res.start(0)
104 res = regexp[0].search(data, 0, from_index)
111 res = regexp[1].match(data, res.end(0), from_index)
117 res = regexp.search(data, 0, from_index)
/external/python/cpython3/Tools/scripts/
Dmailerdaemon.py101 from_index = len(data)
103 from_index = res.start(0)
109 res = regexp[0].search(data, 0, from_index)
116 res = regexp[1].match(data, res.end(0), from_index)
122 res = regexp.search(data, 0, from_index)
/external/rust/crates/plotters/src/series/
Dhistogram.rs146 .from_index(x) in next()
147 .map(|v| (v, self.br.from_index(x + 1))) in next()
170 .from_index(y) in next()
171 .map(|v| (v, self.br.from_index(y + 1))) in next()
/external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/
Dframe_buffer_utils.cc265 int from_index = GetOrientationIndex(from_orientation); in GetOrientParams() local
270 TFLITE_DCHECK(from_index > -1 && to_index > -1); in GetOrientParams()
272 if ((from_index < kExifGroupSize && to_index < kExifGroupSize) || in GetOrientParams()
273 (from_index >= kExifGroupSize && to_index >= kExifGroupSize)) { in GetOrientParams()
279 angle = (kExifGroupSize - (from_index - to_index)) % kExifGroupSize * 90; in GetOrientParams()
282 int from_index_mod = from_index % kExifGroupSize; in GetOrientParams()
/external/rust/crates/plotters/src/coord/ranged1d/types/
Dslice.rs56 fn from_index(&self, index: usize) -> Option<&'a T> { in from_index() method
98 assert_eq!(slice_range.from_index(2), Some(&3)); in test_slice_range_discrete()
Ddatetime.rs229 fn from_index(&self, index: usize) -> Option<D> { in from_index() function
412 fn from_index(&self, index: usize) -> Option<T> { in from_index() function
547 fn from_index(&self, index: usize) -> Option<T> { in from_index() function
1134 assert_eq!(coord.from_index(364), Some(Utc.ymd(2019, 12, 31))); in test_date_discrete()
1145 assert_eq!(coord1.from_index(i - 1).unwrap().month(), i as u32); in test_monthly_discrete()
1147 coord1.index_of(&coord1.from_index(i - 1).unwrap()).unwrap(), in test_monthly_discrete()
1159 assert_eq!(coord1.from_index(i).unwrap().year(), 2000 + i as i32); in test_yearly_discrete()
1160 assert_eq!(coord1.index_of(&coord1.from_index(i).unwrap()).unwrap(), i); in test_yearly_discrete()
Dnumeric.rs28 fn from_index(&self, index: usize) -> Option<Self::ValueType> {
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2_test.py302 ["%s=%d" % (from_name, from_index)
303 for from_index, from_name in enumerate(arg_names_v1)])
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator_typed_visitor.h1075 std::vector<int64> from_index(out_index.begin(), out_index.end());
1077 from_index[dim] = result_shape.dimensions(dim) - 1 - out_index[dim];
1079 return operand_literal.Get<ReturnT>(from_index);
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc2961 tensorflow::Safe_PyObjectPtr from_index( local
2966 PyTuple_Pack(2, from_index.get(), to_index.get()));