/external/rust/crates/plotters/src/coord/ranged1d/ |
D | discrete.rs | 37 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/ |
D | group_by.rs | 53 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()
|
D | ckps.rs | 89 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()
|
D | nested.rs | 122 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()
|
D | partial_axis.rs | 68 fn from_index(&self, index: usize) -> Option<Self::ValueType> { in from_index() function 69 self.0.from_index(index) in from_index()
|
D | linspace.rs | 317 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/ |
D | ShapeKeyframeAnimator.cpp | 130 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/ |
D | mailerdaemon.py | 96 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/ |
D | mailerdaemon.py | 101 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/ |
D | histogram.rs | 146 .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/ |
D | frame_buffer_utils.cc | 265 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/ |
D | slice.rs | 56 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()
|
D | datetime.rs | 229 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()
|
D | numeric.rs | 28 fn from_index(&self, index: usize) -> Option<Self::ValueType> {
|
/external/tensorflow/tensorflow/tools/compatibility/ |
D | tf_upgrade_v2_test.py | 302 ["%s=%d" % (from_name, from_index) 303 for from_index, from_name in enumerate(arg_names_v1)])
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_evaluator_typed_visitor.h | 1075 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/ |
D | pywrap_tfe_src.cc | 2961 tensorflow::Safe_PyObjectPtr from_index( local 2966 PyTuple_Pack(2, from_index.get(), to_index.get()));
|