/third_party/boost/libs/units/example/ |
D | performance.cpp | 176 enum { max_value = 1000}; enumerator 249 boost::numeric::ublas::matrix<double> m1(max_value, max_value); in main() 250 boost::numeric::ublas::matrix<double> m2(max_value, max_value); in main() 252 for(int i = 0; i < max_value; ++i) { in main() 253 for(int j = 0; j < max_value; ++j) { in main() 259 << max_value << ", " << max_value << ") : "; in main() 269 matrix_type m1(max_value, max_value); in main() 270 matrix_type m2(max_value, max_value); in main() 272 for(int i = 0; i < max_value; ++i) { in main() 273 for(int j = 0; j < max_value; ++j) { in main() [all …]
|
/third_party/boost/libs/math/test/ |
D | test_difference.cpp | 26 BOOST_CHECK_EQUAL(relative_difference(val, next), tools::max_value<T>()); in test_value() 31 BOOST_CHECK_EQUAL(relative_difference(val, prev), tools::max_value<T>()); in test_value() 124 …K_EQUAL(relative_difference(tools::min_value<T>(), -tools::min_value<T>()), tools::max_value<T>()); in test_values() 125 …CK_EQUAL(epsilon_difference(tools::min_value<T>(), -tools::min_value<T>()), tools::max_value<T>()); in test_values() 130 …ative_difference(std::numeric_limits<T>::infinity(), tools::max_value<T>()), tools::max_value<T>()… in test_values() 131 …silon_difference(std::numeric_limits<T>::infinity(), tools::max_value<T>()), tools::max_value<T>()… in test_values() 132 …ive_difference(std::numeric_limits<T>::infinity(), tools::max_value<T>() / 2), tools::max_value<T>… in test_values() 133 …lon_difference(std::numeric_limits<T>::infinity(), tools::max_value<T>() / 2), tools::max_value<T>… in test_values() 134 …ST_CHECK_EQUAL(relative_difference(tools::max_value<T>(), std::numeric_limits<T>::infinity()), too… in test_values() 135 …OST_CHECK_EQUAL(epsilon_difference(tools::max_value<T>(), std::numeric_limits<T>::infinity()), too… in test_values() [all …]
|
/third_party/boost/libs/algorithm/minmax/fuzzing/ |
D | minmax_element_variants.fuzz.cpp | 56 uint8_t max_value = *resultff.second; in LLVMFuzzerTestOneInput() local 57 assert(min_value <= max_value); in LLVMFuzzerTestOneInput() 65 assert(*resultff.second == max_value); in LLVMFuzzerTestOneInput() 66 assert(*resultfl.second == max_value); in LLVMFuzzerTestOneInput() 67 assert(*resultlf.second == max_value); in LLVMFuzzerTestOneInput() 68 assert(*resultll.second == max_value); in LLVMFuzzerTestOneInput() 73 assert(data[i] <= max_value); in LLVMFuzzerTestOneInput() 82 assert(boost::algorithm::none_of_equal(data, resultff.second, max_value)); in LLVMFuzzerTestOneInput() 83 assert(boost::algorithm::none_of_equal(resultfl.second + 1, dend, max_value)); in LLVMFuzzerTestOneInput() 84 assert(boost::algorithm::none_of_equal(data, resultlf.second, max_value)); in LLVMFuzzerTestOneInput() [all …]
|
D | minmax_element.fuzz.cpp | 40 uint8_t max_value = *result.second; in LLVMFuzzerTestOneInput() local 42 assert(min_value <= max_value); in LLVMFuzzerTestOneInput() 47 assert(data[i] <= max_value); in LLVMFuzzerTestOneInput() 52 assert(boost::algorithm::none_of_equal(data, result.second, max_value)); in LLVMFuzzerTestOneInput() 65 uint8_t max_value = *result.second; in LLVMFuzzerTestOneInput() local 67 assert (!greater(max_value, min_value)); in LLVMFuzzerTestOneInput() 72 assert(!greater(max_value, data[i])); in LLVMFuzzerTestOneInput() 77 assert(boost::algorithm::none_of_equal(data, result.second, max_value)); in LLVMFuzzerTestOneInput()
|
/third_party/flatbuffers/lua/flatbuffers/ |
D | numTypes.lua | 19 if not self.min_value and not self.max_value then return true end 20 return self.min_value <= n and n <= self.max_value 26 if not self.min_value and not self.max_value then 30 if self.min_value <= n and n <= self.max_value then 40 if not self.min_value and not self.max_value then 44 …if self.min_value <= a and a <= self.max_value and self.min_value <= b and b <= self.max_value then 67 max_value = true, 83 max_value = 2^8-1, 93 max_value = 2^16-1, 103 max_value = 2^32-1, [all …]
|
/third_party/boost/libs/math/tools/ |
D | generate_rational_test.cpp | 85 if(fabs(r5) < tools::max_value<float>()) in main() 91 if(fabs(r6) < tools::max_value<float>()) in main() 118 if(fabs(r5) < tools::max_value<float>()) in main() 124 if(fabs(r6) < tools::max_value<float>()) in main() 151 if(fabs(r5) < tools::max_value<float>()) in main() 157 if(fabs(r6) < tools::max_value<float>()) in main() 191 if(fabs(r5) < tools::max_value<float>()) in main() 197 if(fabs(r6) < tools::max_value<float>()) in main() 224 if(fabs(r5) < tools::max_value<float>()) in main() 230 if(fabs(r6) < tools::max_value<float>()) in main() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | bce_with_logits_loss_impl.cu | 61 T max_value = -predict[pos]; in BCEWithLogitsLossMain() local 62 max_value = max_value > static_cast<T>(0) ? max_value : static_cast<T>(0); in BCEWithLogitsLossMain() 65 log_weight * (log(exp(-max_value) + exp(-predict[pos] - max_value)) + max_value); in BCEWithLogitsLossMain() 74 half max_value = -predict[pos]; in BCEWithLogitsLossMain() local 75 max_value = max_value > static_cast<half>(0) ? max_value : static_cast<half>(0); in BCEWithLogitsLossMain() 78 … log_weight * (hlog(hexp(-max_value) + hexp(-predict[pos] - max_value)) + max_value); in BCEWithLogitsLossMain()
|
/third_party/boost/libs/gil/test/legacy/ |
D | channel.cpp | 34 auto c8_max = channel_traits<uint8_t>::max_value(); 36 auto c8s_max = channel_traits<int8_t>::max_value(); 38 auto c16_max = channel_traits<uint16_t>::max_value(); 40 auto c16s_max = channel_traits<int16_t>::max_value(); 42 auto c32_max = channel_traits<uint32_t>::max_value(); 44 auto c32s_max = channel_traits<int32_t>::max_value(); 46 auto c32f_max = channel_traits<float32_t>::max_value(); 56 error_if(this->_max_v != channel_traits<channel_t>::max_value()); in do_test() 173 , _max_v(channel_traits<ChannelValue>::max_value()) in value_core() 212 b2 = channel_traits<channel_t>::max_value(); in packed_reference_core() [all …]
|
/third_party/boost/boost/geometry/strategies/cartesian/ |
D | point_in_box.hpp | 44 static inline bool apply(Value1 const& value, Value2 const& min_value, Value2 const& max_value) in apply() 46 return value > min_value && value < max_value; in apply() 53 static inline bool apply(Value1 const& value, Value2 const& min_value, Value2 const& max_value) in apply() 55 return value >= min_value && value <= max_value; in apply() 77 static inline bool apply(CalcT const& diff_min, CalcT const& min_value, CalcT const& max_value) in apply() 81 && (min_value + diff_min < max_value in apply() 89 static inline bool apply(CalcT const& diff_min, CalcT const& min_value, CalcT const& max_value) in apply() 91 return min_value + diff_min <= max_value in apply() 103 static inline bool apply(Value1 const& value, Value2 const& min_value, Value2 const& max_value) in apply() 112 if (CoordCheck::apply(value, min_value, max_value)) in apply() [all …]
|
/third_party/boost/libs/numeric/ublas/benchmarks/ |
D | init.hpp | 15 void init(vector<T> &v, unsigned long size, int max_value) in init() argument 19 v(i) = std::rand() % max_value; in init() 23 void init(matrix<T, L> &m, unsigned long size1, unsigned long size2, int max_value) in init() argument 28 m(i, j) = std::rand() % max_value; in init() 32 void init(matrix<T, L> &m, unsigned long size, int max_value) in init() argument 34 return init(m, size, size, max_value); in init()
|
/third_party/boost/boost/random/ |
D | uniform_real_distribution.hpp | 35 Engine& eng, T min_value, T max_value, in generate_uniform_real() argument 44 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real() 45 if(result < max_value) return result; in generate_uniform_real() 51 Engine& eng, T min_value, T max_value, in generate_uniform_real() argument 61 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real() 62 if(result < max_value) return result; in generate_uniform_real() 67 inline T generate_uniform_real(Engine& eng, T min_value, T max_value) in generate_uniform_real() argument 69 if(max_value / 2 - min_value / 2 > (std::numeric_limits<T>::max)() / 2) in generate_uniform_real() 70 return 2 * generate_uniform_real(eng, T(min_value / 2), T(max_value / 2)); in generate_uniform_real() 72 return generate_uniform_real(eng, min_value, max_value, in generate_uniform_real()
|
/third_party/flatbuffers/tests/rust_usage_test/benches/ |
D | flexbuffers_benchmarks.rs | 19 let va = vec![u64::max_value() - 10; 512]; in push_vec_u64_to_map() 20 let vb = vec![u64::max_value() - 20; 512]; in push_vec_u64_to_map() 21 let vc = vec![u64::max_value() - 30; 512]; in push_vec_u64_to_map() 48 let va = vec![u64::max_value() - 10; 512]; in push_vec_u64_to_map_reused() 49 let vb = vec![u64::max_value() - 20; 512]; in push_vec_u64_to_map_reused() 50 let vc = vec![u64::max_value() - 30; 512]; in push_vec_u64_to_map_reused() 78 let va = vec![u64::max_value() - 10; 512]; in push_vec_u64_to_map_direct() 79 let vb = vec![u64::max_value() - 20; 512]; in push_vec_u64_to_map_direct() 80 let vc = vec![u64::max_value() - 30; 512]; in push_vec_u64_to_map_direct() 95 let va = vec![u64::max_value() - 10; 512]; in push_vec_u64_to_map_direct_reused() [all …]
|
/third_party/boost/libs/gil/test/core/channel/ |
D | test_fixture.hpp | 86 , max_v_(gil::channel_traits<ChannelValue>::max_value()) in channel_minmax_value() 99 BOOST_TEST_EQ(this->max_v_, gil::channel_traits<channel_t>::max_value()); in channel() 120 , max_v_(gil::channel_traits<ChannelValue>::max_value()) in channel_value() 163 b2 = gil::channel_traits<channel_t>::max_value(); in packed_channel_reference() 187 b2 = gil::channel_traits<channel_t>::max_value(); in packed_dynamic_channel_reference() 211 channel1_ = gil::channel_traits<channel_0_5_t>::max_value(); in packed_channels565() 212 channel2_ = gil::channel_traits<channel_5_6_t>::max_value(); in packed_channels565() 213 channel3_ = gil::channel_traits<channel_11_5_t>::max_value(); in packed_channels565() 241 channel1_ = gil::channel_traits<channel_5_t>::max_value(); in packed_dynamic_channels565() 242 channel2_ = gil::channel_traits<channel_6_t>::max_value(); in packed_dynamic_channels565() [all …]
|
D | packed_channel_value.cpp | 57 BOOST_TEST_EQ(bits1::max_value(), 1u); in test_packed_channel_value_with_num_bits_1() 59 BOOST_TEST_EQ(gil::channel_traits<bits1>::max_value(), 1u); in test_packed_channel_value_with_num_bits_1() 73 BOOST_TEST_EQ(bits8::max_value(), 255u); in test_packed_channel_value_with_num_bits_8() 75 BOOST_TEST_EQ(gil::channel_traits<bits8>::max_value(), 255u); in test_packed_channel_value_with_num_bits_8() 89 BOOST_TEST_EQ(bits15::max_value(), 32767u); in test_packed_channel_value_with_num_bits15() 91 BOOST_TEST_EQ(gil::channel_traits<bits15>::max_value(), 32767u); in test_packed_channel_value_with_num_bits15()
|
/third_party/boost/libs/numeric/ublas/benchmarks/opencl/ |
D | init.hpp | 17 void init(T &v, unsigned long size, int max_value) in init() argument 23 void init(vector<T, opencl::storage> &v, unsigned long size, int max_value) in init() argument 29 void init(matrix<T, opencl::storage> &m, unsigned long size1, unsigned long size2, int max_value) in init() argument 35 void init(matrix<T, opencl::storage> &m, unsigned long size, int max_value) in init() argument 37 init(m, size, size, max_value); in init()
|
/third_party/boost/libs/gil/test/core/ |
D | promote_integral.cpp | 77 Promoted max_value = (std::numeric_limits<Integral>::max)(); in apply() local 78 max_value = static_cast<Promoted>(max_value * max_value); in apply() 79 BOOST_TEST(absolute_value<Promoted>::apply(max_value) >= max_value); in apply() 80 BOOST_TEST(absolute_value<Promoted>::apply(max_value) <= max_value); in apply() 95 Promoted max_value = (std::numeric_limits<Integral>::max)(); in apply() local 96 Promoted max_value_sqr = static_cast<Promoted>(max_value * max_value); in apply() 99 max_value_sqr > max_value); in apply()
|
/third_party/skia/tools/skpbench/ |
D | _hardware.py | 61 def __init__(self, value_type, min_value=None, max_value=None, argument 65 self.max_value = max_value 76 if self.max_value is not None and typedvalue > self.max_value: 78 (self.name, stringvalue, str(self.max_value)),
|
/third_party/flutter/skia/tools/skpbench/ |
D | _hardware.py | 61 def __init__(self, value_type, min_value=None, max_value=None, argument 65 self.max_value = max_value 76 if self.max_value is not None and typedvalue > self.max_value: 78 (self.name, stringvalue, str(self.max_value)),
|
/third_party/boost/boost/gil/image_processing/ |
D | threshold.hpp | 112 typename channel_type<DstView>::type max_value, in threshold_binary() argument 123 [threshold_value, max_value](source_channel_t px) -> result_channel_t { in threshold_binary() 124 return px > threshold_value ? max_value : 0; in threshold_binary() 130 [threshold_value, max_value](source_channel_t px) -> result_channel_t { in threshold_binary() 131 return px > threshold_value ? 0 : max_value; in threshold_binary() 157 result_channel_t max_value = (std::numeric_limits<result_channel_t>::max)(); in threshold_binary() local 158 threshold_binary(src_view, dst_view, threshold_value, max_value, direction); in threshold_binary() 395 typename channel_type<DstView>::type max_value, in threshold_adaptive() argument 430 … [max_value, constant](source_channel_t px, source_channel_t threshold) -> result_channel_t in threshold_adaptive() 431 { return px > (threshold - constant) ? max_value : 0; }); in threshold_adaptive() [all …]
|
/third_party/boost/libs/gil/test/extension/numeric/ |
D | channel_numeric_operations.cpp | 74 auto const max_value = gil::channel_traits<channel_t>::max_value(); in operator ()() local 76 BOOST_TEST_NE(f(max_value, 1), std::int64_t(max_value) + 1); in operator ()() 77 BOOST_TEST_NE(f(max_value, max_value), std::int64_t(max_value) + max_value); in operator ()() 96 auto const max_value = gil::channel_traits<channel_t>::max_value(); in operator ()() local 99 BOOST_TEST_EQ(f(max_value, 1), min_value); in operator ()() 100 BOOST_TEST_EQ(f(max_value, max_value), max_value - 1); in operator ()()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | pnmdec.c | 38 int max_value; member 97 info->max_value = tmp; in ReadPAMFields() 152 info->max_value = 0; in ReadHeader() 164 if (off == 0 || sscanf(out, "%d", &info->max_value) != 1) return 0; in ReadHeader() 173 info->max_value <= 0 || info->max_value >= 65536) { in ReadHeader() 176 info->bytes_per_px = info->depth * (info->max_value > 255 ? 2 : 1); in ReadHeader() 216 sample_size = (info.max_value > 255) ? 2 : 1; in ReadPNM() 235 if (info.max_value == 255 && info.depth >= 3) { in ReadPNM() 252 const uint32_t round = info.max_value / 2; in ReadPNM() 257 if (info.max_value != 255) v = (v * 255u + round) / info.max_value; in ReadPNM()
|
/third_party/boost/boost/geometry/algorithms/detail/envelope/ |
D | initialize.hpp | 36 CoordinateType max_value) in apply() 39 geometry::set<max_corner, Dimension>(box, max_value); in apply() 44 >::apply(box, min_value, max_value); in apply() 71 coordinate_type max_value in apply() 77 >::apply(box, min_value, max_value); in apply()
|
/third_party/libsnd/tests/ |
D | scale_clip_test.tpl | 267 [+ (get "int_type_name") +] *data_in, max_value ; 323 max_value = 0 ; 330 max_value = (max_value > abs (data_in [k])) ? max_value : abs (data_in [k]) ; 348 [+ (get "float_type_name") +] *data_in, max_value ; 399 max_value = 0.0 ; 401 max_value = (max_value > fabs (data_in [k])) ? max_value : fabs (data_in [k]) ; 403 if (max_value < 1000.0) 404 { printf ("\n\nLine %d: Max value (%f) < 1000.0.\n\n", __LINE__, max_value) ; 411 max_value = 0.0 ; 413 max_value = (max_value > fabs (data_in [k])) ? max_value : fabs (data_in [k]) ; [all …]
|
/third_party/boost/boost/gil/ |
D | channel_algorithm.hpp | 158 return double(channel_traits<C>::max_value()) - double(channel_traits<C>::min_value()); in channel_range() 318 …return DstChannelV( static_cast< dst_integer_t >(x*channel_traits<DstChannelV>::max_value()+0.5f )… in operator ()() 325 …r()(SrcChannelV x) const { return float32_t(x/float(channel_traits<SrcChannelV>::max_value())); } in operator ()() 341 if (x>=channel_traits<uint32_t>::max_value()) return channel_traits<float32_t>::max_value(); in operator ()() 342 return float(x) / float(channel_traits<uint32_t>::max_value()); in operator ()() 351 if (x>=channel_traits<float32_t>::max_value()) in operator ()() 352 return channel_traits<uint32_t>::max_value(); in operator ()() 354 auto const max_value = channel_traits<uint32_t>::max_value(); in operator ()() local 355 auto const result = x * static_cast<float32_t::base_channel_t>(max_value) + 0.5f; in operator ()() 495 …base_channel_type<ChannelValue>::type>(a / double(channel_traits<ChannelValue>::max_value()) * b)); in operator ()() [all …]
|
/third_party/harfbuzz/src/ |
D | hb-ot-var-fvar-table.hh | 85 get_coordinates (info->min_value, info->default_value, info->max_value); in get_axis_deprecated() 95 get_coordinates (info->min_value, info->default_value, info->max_value); in get_axis_info() 101 float min_value, default_value, max_value; in normalize_axis_value() local 102 get_coordinates (min_value, default_value, max_value); in normalize_axis_value() 104 v = hb_clamp (v, min_value, max_value); in normalize_axis_value() 111 v = (v - default_value) / (max_value - default_value); in normalize_axis_value() 117 float min_value, default_value, max_value; in unnormalize_axis_value() local 118 get_coordinates (min_value, default_value, max_value); in unnormalize_axis_value() 125 return v * (max_value - default_value) / 16384.f + default_value; in unnormalize_axis_value()
|