Home
last modified time | relevance | path

Searched refs:float_type (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/boost/libs/multiprecision/test/
Dtest_complex.cpp32 typedef typename complex_type::value_type float_type; in test() typedef
34 …const std::string str_tol("0." + std::string(std::size_t(std::numeric_limits<float_type>::digits10… in test()
36 const float_type tol = boost::lexical_cast<float_type>(str_tol.c_str()); in test()
40 const complex_type z1(float_type(12U) / 10U, float_type(34U) / 10U); in test()
41 const complex_type z2(float_type(56U) / 10U, float_type(78U) / 10U); in test()
42 const complex_type i(float_type(0U), float_type(1U)); in test()
73 …<float_type>("+0.360520607375271149674620390455531453362255965292841648590021691973969631236442516… in test()
74 …<float_type>("+0.360520607375271149674620390455531453362255965292841648590021691973969631236442516… in test()
75 …<float_type>("+0.104989154013015184381778741865509761388286334056399132321041214750542299349240780… in test()
76 …<float_type>("+0.104989154013015184381778741865509761388286334056399132321041214750542299349240780… in test()
[all …]
/third_party/boost/boost/accumulators/statistics/
Dp_square_quantile.hpp58 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
59 typedef array<float_type, 5> array_type;
61 typedef float_type result_type;
65 …: p(is_same<Impl, for_median>::value ? float_type(0.5) : args[quantile_probability | float_type(0.… in p_square_quantile_impl()
73 this->actual_positions[i] = i + float_type(1.); in p_square_quantile_impl()
76 this->desired_positions[0] = float_type(1.); in p_square_quantile_impl()
77 this->desired_positions[1] = float_type(1.) + float_type(2.) * this->p; in p_square_quantile_impl()
78 this->desired_positions[2] = float_type(1.) + float_type(4.) * this->p; in p_square_quantile_impl()
79 this->desired_positions[3] = float_type(3.) + float_type(2.) * this->p; in p_square_quantile_impl()
80 this->desired_positions[4] = float_type(5.); in p_square_quantile_impl()
[all …]
Dweighted_peaks_over_threshold.hpp59 … typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type float_type; typedef
61 typedef boost::tuple<float_type, float_type, float_type> result_type;
99float_type threshold_probability = numeric::fdiv(sum_of_weights(args) - this->w_sum_, sum_of_weigh… in result()
101float_type tmp = numeric::fdiv(( this->mu_ - this->threshold_ )*( this->mu_ - this->threshold_ ), … in result()
102 float_type xi_hat = 0.5 * ( 1. - tmp ); in result()
103 float_type beta_hat = 0.5 * ( this->mu_ - this->threshold_ ) * ( 1. + tmp ); in result()
104 float_type beta_bar = beta_hat * std::pow(1. - threshold_probability, xi_hat); in result()
105float_type u_bar = this->threshold_ - beta_bar * ( std::pow(1. - threshold_probability, -xi_hat) -… in result()
127 mutable float_type mu_; // mean of samples above threshold
128 mutable float_type sigma2_; // variance of samples above threshold
[all …]
Dpeaks_over_threshold.hpp128 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
130 typedef boost::tuple<float_type, float_type, float_type> result_type;
171 float_type threshold_probability = numeric::fdiv(cnt - this->Nu_, cnt); in result()
173float_type tmp = numeric::fdiv(( this->mu_ - this->threshold_ )*( this->mu_ - this->threshold_ ), … in result()
174 float_type xi_hat = 0.5 * ( 1. - tmp ); in result()
175 float_type beta_hat = 0.5 * ( this->mu_ - this->threshold_ ) * ( 1. + tmp ); in result()
176 float_type beta_bar = beta_hat * std::pow(1. - threshold_probability, xi_hat); in result()
177float_type u_bar = this->threshold_ - beta_bar * ( std::pow(1. - threshold_probability, -xi_hat) -… in result()
201 mutable float_type mu_; // mean of Nu_ largest samples
202 mutable float_type sigma2_; // variance of Nu_ largest samples
[all …]
Dextended_p_square_quantile.hpp60 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
61 typedef std::vector<float_type> array_type;
71 typedef float_type result_type;
135 float_type p1 = *iter_probs; in result()
136 float_type p0 = *(iter_probs - 1); in result()
137 float_type h1 = *iter_heights; in result()
138 float_type h0 = *(iter_heights - 1); in result()
140 float_type a = numeric::fdiv(h1 - h0, p1 - p0); in result()
141 float_type b = h1 - p1 * a; in result()
150 float_type p0, p1, p2; in result()
[all …]
Dweighted_median.hpp68 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
69 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
72 typedef float_type result_type;
102 float_type over = numeric::fdiv(this->sum - 0.5 * cnt, it->second * cnt); in result()
119 mutable float_type sum;
121 mutable float_type median;
139 … typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type float_type; typedef
140 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
143 typedef float_type result_type;
168 float_type over = numeric::fdiv(it->second - 0.5, it->second - (it - 1)->second); in result()
[all …]
Dmedian.hpp70 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
71 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
74 typedef float_type result_type;
105 float_type over = numeric::fdiv(this->sum - 0.5 * cnt, it->second * cnt); in result()
123 mutable float_type sum;
125 mutable float_type median;
142 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
143 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
146 typedef float_type result_type;
171 float_type over = numeric::fdiv(it->second - 0.5, it->second - (it - 1)->second); in result()
[all …]
Dweighted_p_square_quantile.hpp58 … typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type float_type; typedef
59 typedef array<float_type, 5> array_type;
61 typedef float_type result_type;
165 float_type d = this->desired_positions[i] - this->actual_positions[i]; in operator ()()
168 float_type dp = this->actual_positions[i + 1] - this->actual_positions[i]; in operator ()()
171 float_type dm = this->actual_positions[i - 1] - this->actual_positions[i]; in operator ()()
174 float_type hp = (this->heights[i + 1] - this->heights[i]) / dp; in operator ()()
175 float_type hm = (this->heights[i - 1] - this->heights[i]) / dm; in operator ()()
182float_type h = this->heights[i] + sign_d / (dp - dm) * ( (sign_d - dm) * hp + (dp - sign_d) * hm ); in operator ()()
223 float_type p; // the quantile probability p
Dp_square_cumul_dist.hpp59 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
60 typedef std::vector<float_type> array_type;
61 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
147 float_type d = this->desired_positions[i] - this->actual_positions[i]; in operator ()()
150 float_type dp = this->actual_positions[i + 1] - this->actual_positions[i]; in operator ()()
153 float_type dm = this->actual_positions[i - 1] - this->actual_positions[i]; in operator ()()
156 float_type hp = (this->heights[i + 1] - this->heights[i]) / dp; in operator ()()
157 float_type hm = (this->heights[i - 1] - this->heights[i]) / dm; in operator ()()
164float_type h = this->heights[i] + sign_d / (dp - dm) * ( (sign_d - dm) * hp + (dp - sign_d) * hm ); in operator ()()
Dweighted_p_square_cumul_dist.hpp56 … typedef typename numeric::functional::fdiv<weighted_sample, std::size_t>::result_type float_type; typedef
57 typedef std::vector<std::pair<float_type, float_type> > histogram_type;
58 typedef std::vector<float_type> array_type;
163 float_type d = this->desired_positions[i] - this->actual_positions[i]; in operator ()()
166 float_type dp = this->actual_positions[i + 1] - this->actual_positions[i]; in operator ()()
169 float_type dm = this->actual_positions[i - 1] - this->actual_positions[i]; in operator ()()
172 float_type hp = (this->heights[i + 1] - this->heights[i]) / dp; in operator ()()
173 float_type hm = (this->heights[i - 1] - this->heights[i]) / dm; in operator ()()
180float_type h = this->heights[i] + sign_d / (dp - dm) * ( (sign_d - dm) * hp + (dp - sign_d) * hm ); in operator ()()
Dextended_p_square.hpp73 typedef typename numeric::functional::fdiv<Sample, std::size_t>::result_type float_type; typedef
74 typedef std::vector<float_type> array_type;
186 float_type d = this->desired_positions[i] - this->actual_positions[i]; in operator ()()
189 float_type dp = this->actual_positions[i+1] - this->actual_positions[i]; in operator ()()
192 float_type dm = this->actual_positions[i-1] - this->actual_positions[i]; in operator ()()
195 float_type hp = (this->heights[i+1] - this->heights[i]) / dp; in operator ()()
196 float_type hm = (this->heights[i-1] - this->heights[i]) / dm; in operator ()()
202 float_type h = this->heights[i] + sign_d / (dp - dm) * ((sign_d - dm)*hp in operator ()()
/third_party/mesa3d/src/compiler/glsl/
Dir_expression_operation.py86 float_type = type("float", "f", "GLSL_TYPE_FLOAT") variable
90 all_types = (uint_type, int_type, float_type, double_type, uint64_type, int64_type, bool_type)
91 numeric_types = (uint_type, int_type, float_type, double_type, uint64_type, int64_type)
92 signed_numeric_types = (int_type, float_type, double_type, int64_type)
94 real_types = (float_type, double_type)
426 …operation("exp", 1, source_types=(float_type,), c_expression="expf({src0})"), # Log base e…
427 …operation("log", 1, source_types=(float_type,), c_expression="logf({src0})"), # Natural lo…
428 operation("exp2", 1, source_types=(float_type,), c_expression="exp2f({src0})"),
429 operation("log2", 1, source_types=(float_type,), c_expression="log2f({src0})"),
432 operation("f2i", 1, source_types=(float_type,), dest_type=int_type, c_expression="(int) {src0}"),
[all …]
Dbuiltin_types.cpp56 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "near"),
57 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "far"),
58 glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "diff"),
62 glsl_struct_field(glsl_type::float_type, "size"),
63 glsl_struct_field(glsl_type::float_type, "sizeMin"),
64 glsl_struct_field(glsl_type::float_type, "sizeMax"),
65 glsl_struct_field(glsl_type::float_type, "fadeThresholdSize"),
66 glsl_struct_field(glsl_type::float_type, "distanceConstantAttenuation"),
67 glsl_struct_field(glsl_type::float_type, "distanceLinearAttenuation"),
68 glsl_struct_field(glsl_type::float_type, "distanceQuadraticAttenuation"),
[all …]
/third_party/mesa3d/src/intel/compiler/
Dtest_fs_saturate_propagation.cpp116 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
117 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
118 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
119 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
151 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
152 fs_reg dst1 = v->vgrf(glsl_type::float_type); in TEST_F()
153 fs_reg dst2 = v->vgrf(glsl_type::float_type); in TEST_F()
154 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
155 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
189 fs_reg dst0 = v->vgrf(glsl_type::float_type); in TEST_F()
[all …]
Dtest_fs_cmod_propagation.cpp126 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
127 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
128 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
158 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
159 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
160 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
192 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
193 fs_reg src0 = v->vgrf(glsl_type::float_type); in TEST_F()
194 fs_reg src1 = v->vgrf(glsl_type::float_type); in TEST_F()
289 fs_reg dest = v->vgrf(glsl_type::float_type); in TEST_F()
[all …]
Dtest_vec4_cmod_propagation.cpp158 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
159 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
160 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
194 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
195 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
196 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
232 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
300 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
301 src_reg src0 = src_reg(v, glsl_type::float_type); in TEST_F()
302 src_reg src1 = src_reg(v, glsl_type::float_type); in TEST_F()
[all …]
/third_party/boost/boost/math/cstdfloat/
Dcstdfloat_iostream.hpp363 …template<class float_type, class type_a> inline void eval_convert_to(type_a* pa, const float_ty… in eval_convert_to()
364 …template<class float_type, class type_a> inline void eval_add (float_type& b, const type_a& … in eval_add()
365 …template<class float_type, class type_a> inline void eval_subtract (float_type& b, const type_a& … in eval_subtract()
366 …template<class float_type, class type_a> inline void eval_multiply (float_type& b, const type_a& … in eval_multiply()
367 …template<class float_type> inline void eval_multiply (float_type& b, const float_ty… in eval_multiply()
368 …template<class float_type, class type_a> inline void eval_divide (float_type& b, const type_a& … in eval_divide()
369 …template<class float_type> inline void eval_log10 (float_type& b, const float_ty… in eval_log10()
370 …template<class float_type> inline void eval_floor (float_type& b, const float_ty… in eval_floor()
399 template<class float_type>
400 std::string convert_to_string(float_type& x, in convert_to_string()
[all …]
Dcstdfloat_cmath.hpp45 template<class float_type, class integer_type>
46 inline float_type pown(const float_type& x, const integer_type p) in pown()
50 const bool isinf = ((!isneg) ? bool(+x > (std::numeric_limits<float_type>::max)()) in pown()
51 : bool(-x > (std::numeric_limits<float_type>::max)())); in pown()
55 if (isinf) { return std::numeric_limits<float_type>::quiet_NaN(); } in pown()
58 const float_type abs_x = (x_is_neg ? -x : x); in pown()
62 if (abs_x < (std::numeric_limits<float_type>::min)()) in pown()
64 return (x_is_neg ? -std::numeric_limits<float_type>::infinity() in pown()
65 : +std::numeric_limits<float_type>::infinity()); in pown()
69 return float_type(1) / pown(x, static_cast<integer_type>(-p)); in pown()
[all …]
/third_party/boost/libs/multiprecision/example/
Dgauss_laguerre_quadrature.cpp474 float_type; typedef
503 …east32_t d = static_cast<boost::float_least32_t>(std::numeric_limits<local::float_type>::digits10); in main()
509 …c_limits<local::float_type>::digits10: " << std::numeric_limits<local::float_type>::digits10 << st… in main()
512 …typedef gauss::laguerre::detail::abscissas_and_weights<local::float_type> abscissas_and_weights_ty… in main()
514 …const abscissas_and_weights_type the_abscissas_and_weights(laguerre_order, local::float_type(-1) /… in main()
520 const local::float_type x = local::float_type(u) / 7; in main()
522 typedef gauss::laguerre::detail::airy_ai_object<local::float_type> airy_ai_object_type; in main()
526 const local::float_type airy_ai_value = in main()
530 local::float_type(0U), in main()
531 std::plus<local::float_type>(), in main()
[all …]
/third_party/boost/libs/math/example/
Dairy_zeros_example.cpp39 typedef boost::multiprecision::cpp_dec_float_50 float_type; typedef
113 …std::cout.precision(std::numeric_limits<float_type>::digits10); // float_type has 50 decimal digit… in main()
117 float_type r = boost::math::airy_ai_zero<float_type>(1U); // 1st root. in main()
120 r = boost::math::airy_ai_zero<float_type>(2U); // 2nd root. in main()
123 r = boost::math::airy_bi_zero<float_type>(7U); // 7th root. in main()
126 std::vector<float_type> zeros; in main()
127 boost::math::airy_ai_zero<float_type>(1U, 3, std::back_inserter(zeros)); in main()
131 std::ostream_iterator<float_type>(std::cout, "\n")); in main()
Dbessel_zeros_example_1.cpp39 typedef boost::multiprecision::cpp_dec_float_50 float_type; typedef
165 std::cout.precision(std::numeric_limits<float_type>::digits10); // 50 decimal digits. in main()
168 float_type x = float_type(71) / 19; in main()
169 float_type r = boost::math::cyl_bessel_j_zero(x, 1); // 1st root. in main()
175 std::vector<float_type> zeros; in main()
181 std::ostream_iterator<float_type>(std::cout, "\n")); in main()
/third_party/boost/boost/container_hash/detail/
Dfloat_functions.hpp80 typedef Float float_type; typedef
88 typedef Float float_type; typedef
134 template <typename T> is<T> float_type(T);
142 typedef double float_type; typedef
157 typedef double float_type; typedef
209 sizeof(float_type(cpp_func(x,y))) \
212 sizeof(float_type(c99_func(x,y))) \
223 typedef type1 float_type; \
241 typedef type1 float_type; \
265 typedef type1 float_type; \
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconst_folding_rules.cpp29 const analysis::Float* float_type = type->AsFloat(); in GetNan() local
30 if (float_type == nullptr) { in GetNan()
34 switch (float_type->width()) { in GetNan()
49 const analysis::Float* float_type = type->AsFloat(); in GetInf() local
50 if (float_type == nullptr) { in GetInf()
54 switch (float_type->width()) { in GetInf()
80 const analysis::Float* float_type = result_type->AsFloat(); in negateFPConst() local
81 assert(float_type != nullptr); in negateFPConst()
82 if (float_type->width() == 32) { in negateFPConst()
85 } else if (float_type->width() == 64) { in negateFPConst()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dconst_folding_rules.cpp160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() local
161 assert(float_type != nullptr); in FoldVectorTimesScalar()
172 if (float_type->width() == 32) { in FoldVectorTimesScalar()
178 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
182 } else if (float_type->width() == 64) { in FoldVectorTimesScalar()
189 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp() local
376 assert(float_type != nullptr); in FoldFToIOp()
379 if (float_type->width() == 32) { in FoldFToIOp()
386 } else if (float_type->width() == 64) { in FoldFToIOp()
[all …]
/third_party/spirv-tools/source/opt/
Dconst_folding_rules.cpp160 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar() local
161 assert(float_type != nullptr); in FoldVectorTimesScalar()
172 if (float_type->width() == 32) { in FoldVectorTimesScalar()
178 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
182 } else if (float_type->width() == 64) { in FoldVectorTimesScalar()
189 const_mgr->GetConstant(float_type, words); in FoldVectorTimesScalar()
375 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp() local
376 assert(float_type != nullptr); in FoldFToIOp()
379 if (float_type->width() == 32) { in FoldFToIOp()
386 } else if (float_type->width() == 64) { in FoldFToIOp()
[all …]

123456