Home
last modified time | relevance | path

Searched refs:bu (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/third_party/boost/libs/units/test/
Dtest_lambda.cpp39 namespace bu = boost::units;
51 bu::quantity<bu::length> lvar = 0.0 * bu::meter; in test_main()
53 bu::quantity<bu::dimensionless> dlvar = 3.0; in test_main()
56 boost::function<bu::quantity<bu::length> (bu::quantity<bu::length>)> in test_main()
59 lvar = 1.0 * bu::meter; in test_main()
60 BOOST_CHECK((f(2.0 * bu::meter) == 3.0 * bu::meter)); in test_main()
61 BOOST_CHECK((f(6.0 * bu::meter) == 9.0 * bu::meter)); in test_main()
68 lvar = 3.0 * bu::meter; in test_main()
69 BOOST_CHECK((f(-2.0 * bu::meter) == 1.0 * bu::meter)); in test_main()
70 BOOST_CHECK((f(6.0 * bu::meter) == 7.0 * bu::meter)); in test_main()
[all …]
Dtest_predicates.cpp41 namespace bu = boost::units;
47 struct base_unit1 : bu::base_unit<base_unit1, dimension, 100> {};
48 struct base_unit2 : bu::base_unit<base_unit2, dimension, 101> {};
50 typedef bu::make_system<base_unit1>::type system1;
51 typedef bu::make_system<base_unit2>::type system2;
55 BOOST_MPL_ASSERT((bu::is_dimension_list<bu::dimensionless_type>)); in main()
56 BOOST_MPL_ASSERT((bu::is_dimension_list<dimension>)); in main()
57 BOOST_MPL_ASSERT_NOT((bu::is_dimension_list<boost::mpl::list0<> >)); in main()
58 BOOST_MPL_ASSERT_NOT((bu::is_dimension_list<int>)); in main()
60 BOOST_MPL_ASSERT((bu::is_unit<bu::unit<bu::dimensionless_type, system1> >)); in main()
[all …]
Dtest_implicit_conversion.cpp31 namespace bu = boost::units;
62 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::length,bu::cgs::length>::value == false)); in test_main()
63 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::mass,bu::cgs::mass>::value == false)); in test_main()
64 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::time,bu::cgs::time>::value == true)); in test_main()
66 …BOOST_CHECK((bu::is_implicitly_convertible<bu::si::acceleration,bu::cgs::acceleration>::value == f… in test_main()
67 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::area,bu::cgs::area>::value == false)); in test_main()
68 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::energy,bu::cgs::energy>::value == false)); in test_main()
69 BOOST_CHECK((bu::is_implicitly_convertible<bu::si::force,bu::cgs::force>::value == false)); in test_main()
70 … BOOST_CHECK((bu::is_implicitly_convertible<bu::si::frequency,bu::cgs::frequency>::value == true)); in test_main()
71 …BOOST_CHECK((bu::is_implicitly_convertible<bu::si::mass_density,bu::cgs::mass_density>::value == f… in test_main()
[all …]
Dtest_cmath.cpp30 namespace bu = boost::units;
38 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E1(0.0*bu::joules), in test_main()
39 E2(inf*bu::joules), in test_main()
40 E3(nan*bu::joules); in test_main()
42 BOOST_CHECK((bu::isfinite)(E1) == true); in test_main()
43 BOOST_CHECK((bu::isfinite)(E2) == false); in test_main()
44 BOOST_CHECK((bu::isfinite)(E3) == false); in test_main()
46 BOOST_CHECK((bu::isinf)(E1) == false); in test_main()
47 BOOST_CHECK((bu::isinf)(E2) == true); in test_main()
48 BOOST_CHECK((bu::isinf)(E3) == false); in test_main()
[all …]
Dtest_quantity.cpp28 namespace bu = boost::units;
35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E1; in test_main()
39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E2(E_*bu::joules); in test_main()
43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E3(E2); in test_main()
47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E4 = E2; in test_main()
51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy,float> E5(E2); in test_main()
62 bu::quantity<bu::energy> E9(E2); in test_main()
66 bu::quantity_cast<double&>(E9) = 1.5; in test_main()
70 bu::quantity_cast<double&>(E9) = 2; in test_main()
74 E9 = 2.0*bu::joules; in test_main()
[all …]
Dtest_conversion.cpp36 namespace bu = boost::units;
38 typedef bu::si::length si_length;
39 typedef bu::si::time si_time;
40 typedef bu::si::mass si_mass;
41 typedef bu::si::area si_area;
43 typedef bu::cgs::length cgs_length;
44 typedef bu::cgs::time cgs_time;
45 typedef bu::cgs::mass cgs_mass;
46 typedef bu::cgs::area cgs_area;
48 typedef bu::multiply_typeof_helper<si_length, cgs_length>::type mixed_length;
[all …]
Dtest_dimensionless_quantity.cpp28 namespace bu = boost::units;
35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E1; in test_main()
39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E2(E_); in test_main()
43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E3(E2); in test_main()
47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E4 = E2; in test_main()
51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,float> E5(E2); in test_main()
54 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,long> E6(E2); in test_main()
67 bu::quantity<bu::dimensionless> E9(E2); in test_main()
107 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E(bu::quantity<bu::dimensionles… in test_main()
118 BOOST_CHECK(bu::dimensionless()*2.0 == bu::quantity<bu::dimensionless>::from_value(2.0)); in test_main()
[all …]
Dtest_absolute.cpp39 namespace bu = boost::units;
40 using bu::si::kelvin_base_unit;
41 using bu::temperature::celsius_base_unit;
42 using bu::temperature::fahrenheit_base_unit;
44 typedef bu::unit<bu::temperature_dimension,bu::make_system<kelvin_base_unit>::type> kelvin_type;
46 typedef bu::unit<bu::temperature_dimension,bu::make_system<celsius_base_unit>::type> celsius_type;
48 typedef bu::unit<bu::temperature_dimension,bu::make_system<fahrenheit_base_unit>::type> fahrenheit_…
52 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::absolute<fahrenheit_type> > q1(212.0 * bu::absolute<fahr… in test_main()
53 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::absolute<celsius_type> > q2(0.0 * bu::absolute<celsius_t… in test_main()
54 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::absolute<fahrenheit_type> > q3(q2); in test_main()
[all …]
Dfail_heterogeneous_unit.cpp31 namespace bu = boost::units;
34 bu::quantity<bu::unit<bu::energy_dimension, System> > f(bu::quantity<bu::unit<bu::length_dimension,… in f()
35 …return(static_cast<bu::quantity<bu::unit<bu::energy_dimension, System> > >(f(static_cast<bu::quant… in f()
37 bu::quantity<bu::si::energy> f(bu::quantity<bu::si::length> l) { in f()
38 return(l * l * 2.0 * bu::si::kilograms / bu::pow<2>(bu::si::seconds)); in f()
43 f(1.0 * bu::pow<2>(bu::si::meters) / bu::cgs::centimeters); in main()
Dtest_scaled_conversion.cpp37 namespace bu = boost::units;
39 struct base_dimension1 : bu::base_dimension<base_dimension1, 1> {};
40 struct base_dimension2 : bu::base_dimension<base_dimension2, 2> {};
41 struct base_dimension3 : bu::base_dimension<base_dimension3, 3> {};
43 typedef bu::derived_dimension<base_dimension1, 1, base_dimension2, 1, base_dimension3, 1>::type dim…
45 struct base_unit1 : bu::base_unit<base_unit1, base_dimension1::dimension_type, 1> {};
46 struct base_unit2 : bu::base_unit<base_unit2, base_dimension1::dimension_type, 2> {};
47 struct base_unit3 : bu::base_unit<base_unit3, base_dimension1::dimension_type, 3> {};
48 struct base_unit4 : bu::base_unit<base_unit4, dimension4, 4> {};
49 struct base_unit5 : bu::base_unit<base_unit5, base_dimension3::dimension_type, 5> {};
[all …]
Dtest_information_units.cpp28 namespace bu = boost::units;
31 using bu::quantity;
33 using bu::information::bit_base_unit;
34 using bu::information::byte_base_unit;
35 using bu::information::nat_base_unit;
36 using bu::information::hartley_base_unit;
37 using bu::information::shannon_base_unit;
51 BOOST_CHECK_CLOSE_FRACTION(bu::conversion_factor((u2), (u1)), (expected), close_fraction); \
52 …BOOST_CHECK_CLOSE_FRACTION(bu::conversion_factor((u2), (u1)) * bu::conversion_factor((u1), (u2)), …
57 BOOST_CONSTEXPR_OR_CONST double cf12 = bu::conversion_factor((u2), (u1)) ; \
[all …]
Dtest_sqrt_scaled_unit.cpp30 namespace bu = boost::units;
34 typedef bu::make_scaled_unit<bu::length,
35 bu::scale<10, bu::static_rational<-3> > >::type milli_meter_unit;
37 typedef bu::make_scaled_unit<bu::area,
38 bu::scale<10, bu::static_rational<-6> > >::type micro_meter2_unit;
42 const bu::quantity<micro_meter2_unit> E1 = E_*micro_meter2_unit(); in test_main()
43 const bu::quantity<milli_meter_unit> E2 = sqrt(E1); in test_main()
Dtest_unit.cpp28 namespace bu = boost::units;
32 BOOST_CONSTEXPR_OR_CONST bu::dimensionless D; in test_main()
34 BOOST_CONSTEXPR_OR_CONST bu::length L; in test_main()
35 BOOST_CONSTEXPR_OR_CONST bu::mass M; in test_main()
36 BOOST_CONSTEXPR_OR_CONST bu::time T; in test_main()
48 BOOST_CONSTEXPR_OR_CONST bu::area A; in test_main()
49 BOOST_CONSTEXPR_OR_CONST bu::energy E; in test_main()
50 BOOST_CONSTEXPR_OR_CONST bu::velocity V; in test_main()
63 BOOST_CHECK(M*bu::pow<2>(L/T) == E); in test_main()
64 BOOST_CHECK(bu::root<2>(E/M) == V); in test_main()
Dtest_scaled_unit.cpp36 namespace bu = boost::units;
40 BOOST_CONSTEXPR_OR_CONST bu::quantity<si::time> s1 = 12.5 * si::seconds; in BOOST_AUTO_TEST_CASE()
41 BOOST_CONSTEXPR_OR_CONST bu::quantity<si::time> s2(si::nano * s1); in BOOST_AUTO_TEST_CASE()
46 BOOST_CONSTEXPR_OR_CONST bu::quantity<si::time> s1 = 12.5 * si::seconds; in BOOST_AUTO_TEST_CASE()
47 typedef bu::multiply_typeof_helper<si::nano_type, si::time>::type time_unit; in BOOST_AUTO_TEST_CASE()
48 BOOST_CONSTEXPR_OR_CONST bu::quantity<time_unit> s2(s1); in BOOST_AUTO_TEST_CASE()
53 typedef bu::multiply_typeof_helper<si::mega_type, si::time>::type mega_time_unit; in BOOST_AUTO_TEST_CASE()
54 typedef bu::multiply_typeof_helper<si::micro_type, si::time>::type micro_time_unit; in BOOST_AUTO_TEST_CASE()
55 BOOST_CONSTEXPR_OR_CONST bu::quantity<mega_time_unit> s1(12.5 * si::seconds); in BOOST_AUTO_TEST_CASE()
56 BOOST_CONSTEXPR_OR_CONST bu::quantity<micro_time_unit> s2(s1); in BOOST_AUTO_TEST_CASE()
[all …]
Dfail_add_temperature.cpp28 namespace bu = boost::units;
33 bu::quantity<bu::absolute<bu::si::temperature> > q(2.0 * bu::absolute<bu::si::temperature>()); in main()
Dfail_implicit_conversion.cpp28 namespace bu = boost::units;
32 const bu::quantity<bu::si::length> T1(2.0 * bu::si::meters); in main()
33 const bu::quantity<bu::cgs::length> T2 = T1; in main()
Dtest_mixed_value_types.cpp15 namespace bu = boost::units;
18 bu::quantity<bu::si::length, double> q1; in main()
19 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::si::length, int> q2; in main()
/third_party/boost/libs/units/example/
Dlambda.cpp60 namespace bu = boost::units; in main()
69 bu::quantity<si::acceleration> a = 2.0 * si::meters_per_second_squared; in main()
70 bu::quantity<si::velocity> v = 1.0 * si::meters_per_second; in main()
71 bu::quantity<si::length> s0 = 0.5 * si::meter; in main()
74 boost::function<bu::quantity<si::length> (bu::quantity<si::time>) > in main()
99 const bu::quantity<si::current> iamp = 1.5 * si::ampere; in main()
100 const bu::quantity<si::frequency> f = 1.0e3 * si::hertz; in main()
101 const bu::quantity<si::current> i0 = 0.5 * si::ampere; in main()
107 boost::function<bu::quantity<si::current> (bu::quantity<si::time>) > in main()
109 …* bl::bind(static_cast<bu::dimensionless_quantity<si::system, double>::type (*)(const bu::quantity… in main()
[all …]
Dinformation.cpp45 namespace bu = boost::units;
46 using bu::quantity;
47 using bu::conversion_factor;
55 using namespace bu::information;
64 quantity<bu::unit<bu::information_dimension, Sys> >
65 bernoulli_entropy(double p, const bu::unit<bu::information_dimension, Sys>&) { in bernoulli_entropy()
66 typedef bu::unit<bu::information_dimension, Sys> requested_unit; in bernoulli_entropy()
/third_party/boost/libs/numeric/interval/test/
Dmul.cpp25 static bool test_mul(double al, double au, double bl, double bu) { in test_mul() argument
26 I a(al, au), b(bl, bu); in test_mul()
28 return c.lower() == (min)(al*bl, al*bu, au*bl, au*bu) in test_mul()
29 && c.upper() == (max)(al*bl, al*bu, au*bl, au*bu); in test_mul()
32 static bool test_mul1(double ac, double bl, double bu) { in test_mul1() argument
33 I a(ac), b(bl, bu); in test_mul1()
40 static bool test_div(double al, double au, double bl, double bu) { in test_div() argument
41 I a(al, au), b(bl, bu); in test_div()
43 return c.lower() == (min)(al/bl, al/bu, au/bl, au/bu) in test_div()
44 && c.upper() == (max)(al/bl, al/bu, au/bl, au/bu); in test_div()
[all …]
/third_party/icu/icu4c/source/data/lang/
Dwo.txt30 de_AT{"Almaa bu Ótiriis"}
31 de_CH{"Almaa bu Kawe bu Swis"}
37 en_AU{"Àngale bu Óstraali"}
38 en_CA{"Àngale bu Kanadaa"}
39 en_GB{"Àngale bu Grànd Brëtaañ"}
40 en_US{"Àngale bu Amerik"}
43 es_419{"Español bu Amerik Latin"}
44 es_ES{"Español bu Tugël"}
45 es_MX{"Español bu Meksik"}
54 fr_CA{"Frañse bu Kanadaa"}
[all …]
/third_party/skia/third_party/externals/icu/source/data/lang/
Dwo.txt30 de_AT{"Almaa bu Ótiriis"}
31 de_CH{"Almaa bu Kawe bu Swis"}
37 en_AU{"Àngale bu Óstraali"}
38 en_CA{"Àngale bu Kanadaa"}
39 en_GB{"Àngale bu Grànd Brëtaañ"}
40 en_US{"Àngale bu Amerik"}
43 es_419{"Español bu Amerik Latin"}
44 es_ES{"Español bu Tugël"}
45 es_MX{"Español bu Meksik"}
54 fr_CA{"Frañse bu Kanadaa"}
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/data/curr/
Dwo.txt7 "Real bu Bresil",
11 "Yuan bu Siin",
19 "Pound bu Grànd Brëtaañ",
23 "Rupee bu End",
27 "Yen bu Sapoŋ",
39 "Franc CFA bu Afrik Sowwu-jant",
43 "Xaalis buñ Xamul",
85 other{"(xaalis buñ xamul)"}
/third_party/skia/third_party/externals/icu/source/data/curr/
Dwo.txt8 "Real bu Bresil",
12 "Yuan bu Siin",
20 "Pound bu Grànd Brëtaañ",
24 "Rupee bu End",
28 "Yen bu Sapoŋ",
40 "Franc CFA bu Afrik Sowwu-jant",
44 "Xaalis buñ Xamul",
86 other{"(xaalis buñ xamul)"}
/third_party/icu/icu4c/source/data/curr/
Dwo.txt8 "Real bu Bresil",
12 "Yuan bu Siin",
20 "Pound bu Grànd Brëtaañ",
24 "Rupee bu End",
28 "Yen bu Sapoŋ",
40 "Franc CFA bu Afrik Sowwu-jant",
44 "Xaalis buñ Xamul",
86 other{"(xaalis buñ xamul)"}

12345678910>>...13