/third_party/boost/libs/histogram/test/ |
D | axis_variant_test.cpp | 23 namespace tr = axis::transform; in main() 26 (void)axis::variant<>{}; in main() 32 axis::variant<axis::integer<double>, axis::category<std::string, meta_type>>; in main() 33 auto a = variant_type{axis::integer<double>(0, 2, "foo")}; in main() 48 BOOST_TEST_EQ(a.options(), axis::option::underflow | axis::option::overflow); in main() 50 a = axis::category<std::string, meta_type>({"A", "B"}, {1, 2, 3}); in main() 55 BOOST_TEST_EQ(a.options(), axis::option::overflow_t::value); in main() 60 using A = axis::integer<>; in main() 61 using B = axis::regular<>; in main() 64 axis::variant<A*, B*> r1(&a); in main() [all …]
|
D | histogram_test.cpp | 38 BOOST_TEST_EQ(h.axis(0_c), axis::integer<>(0, 3)); in pass_histogram() 45 auto h = make(Tag(), axis::regular<>{3, -1, 1}); in run_tests() 48 BOOST_TEST_EQ(h.axis(0_c).size(), 3); in run_tests() 49 BOOST_TEST_EQ(h.axis().size(), 3); in run_tests() 50 auto h2 = make_s(Tag(), std::vector<unsigned>(), axis::regular<>{3, -1, 1}); in run_tests() 56 auto h = make(Tag(), axis::regular<>{3, -1, 1}, axis::integer<>{-1, 2}, in run_tests() 57 axis::circular<>{2, 0, 360}, axis::variable<>{-1, 0, 1}, in run_tests() 58 axis::category<>{{3, 1, 2}}); in run_tests() 61 auto h2 = make_s(Tag(), std::vector<unsigned>(), axis::regular<>{3, -1, 1}, in run_tests() 62 axis::integer<>{-1, 2}, axis::circular<>{2, 0, 360}, in run_tests() [all …]
|
D | algorithm_reduce_test.cpp | 25 axis::index_type index(int) const { return 0; } in index() 26 axis::index_type size() const { return 1; } in size() 37 using R = axis::regular<double>; in run_tests() 38 using ID = axis::integer<double, axis::empty_type>; in run_tests() 39 using V = axis::variable<double, axis::empty_type>; in run_tests() 40 using CI = axis::category<int, axis::empty_type>; in run_tests() 79 const auto& ax = h.axis(); in run_tests() 85 BOOST_TEST_EQ(reduce(h, shrink(-1, 5)).axis(), ID(0, 3)); in run_tests() 86 BOOST_TEST_EQ(reduce(h, shrink(0, 3)).axis(), ID(0, 3)); in run_tests() 87 BOOST_TEST_EQ(reduce(h, shrink(1, 3)).axis(), ID(1, 3)); in run_tests() [all …]
|
D | deduction_guides_test.cpp | 23 namespace tr = axis::transform; 30 using axis::null_type; in main() 33 using axis::regular; in main() 51 using axis::integer; in main() 61 using axis::variable; in main() 80 using axis::category; in main() 88 using axis::boolean; in main() 94 auto h = histogram(axis::regular(3, -1, 1), axis::integer(0, 4)); in main() 96 histogram<std::tuple<axis::regular<double, tr::id, null_type>, in main() 97 axis::integer<int, null_type>>>); in main() [all …]
|
D | histogram_mixed_test.cpp | 26 auto a = make(T1{}, axis::regular<>{3, 0, 3}, axis::integer<>(0, 2)); in run_tests() 27 auto b = make_s(T2{}, std::vector<unsigned>(), axis::regular<>{3, 0, 3}, in run_tests() 28 axis::integer<>(0, 2)); in run_tests() 30 auto b2 = make(T2{}, axis::integer<>{0, 3}, axis::integer<>(0, 2)); in run_tests() 32 auto b3 = make(T2{}, axis::regular<>(3, 0, 4), axis::integer<>(0, 2)); in run_tests() 38 auto a = make(T1{}, axis::integer<int, use_default, axis::option::none_t>{0, 2}); in run_tests() 39 auto b = make(T2{}, axis::integer<int, use_default, axis::option::none_t>{0, 2}); in run_tests() 60 BOOST_TEST_THROWS(a += make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests() 61 BOOST_TEST_THROWS(a -= make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests() 62 BOOST_TEST_THROWS(a *= make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests() [all …]
|
D | algorithm_project_test.cpp | 25 auto h = make(Tag(), axis::integer<>(0, 2), axis::integer<>(0, 3)); in run_tests() 45 BOOST_TEST_EQ(hx.axis(), h.axis(0_c)); in run_tests() 52 BOOST_TEST_EQ(hy.axis(), h.axis(1_c)); in run_tests() 60 BOOST_TEST_EQ(hyx.axis(0_c), h.axis(1_c)); in run_tests() 61 BOOST_TEST_EQ(hyx.axis(1_c), h.axis(0_c)); in run_tests() 72 make(Tag(), axis::integer<>(0, 2), axis::integer<>(0, 3), axis::integer<>(0, 4)); in run_tests() 84 BOOST_TEST_EQ(h_0.axis(), axis::integer<>(0, 2)); in run_tests() 91 BOOST_TEST_EQ(h_1.axis(), axis::integer<>(0, 3)); in run_tests() 99 BOOST_TEST_EQ(h_2.axis(), axis::integer<>(0, 4)); in run_tests() 107 BOOST_TEST_EQ(h_01.axis(0_c), axis::integer<>(0, 2)); in run_tests() [all …]
|
D | axis_category_test.cpp | 24 BOOST_TEST(std::is_nothrow_move_constructible<axis::category<int>>::value); in main() 25 BOOST_TEST(std::is_nothrow_move_constructible<axis::category<std::string>>::value); in main() 26 BOOST_TEST(std::is_nothrow_move_assignable<axis::category<int>>::value); in main() 27 BOOST_TEST(std::is_nothrow_move_assignable<axis::category<std::string>>::value); in main() 33 BOOST_TEST_THROWS(axis::category<int>(x + 1, x), std::invalid_argument); in main() 40 BOOST_TEST_TRAIT_SAME(axis::traits::value_type<axis::category<std::string>>, in main() 42 BOOST_TEST_TRAIT_SAME(decltype(std::declval<axis::category<std::string>>().value(0)), in main() 44 BOOST_TEST_TRAIT_SAME(axis::traits::value_type<axis::category<const char*>>, in main() 46 BOOST_TEST_TRAIT_SAME(decltype(std::declval<axis::category<const char*>>().value(0)), in main() 48 BOOST_TEST_TRAIT_SAME(axis::traits::value_type<axis::category<Foo>>, Foo); in main() [all …]
|
D | histogram_dynamic_test.cpp | 31 using R = axis::regular<>; in main() 32 using I = axis::integer<>; in main() 33 using V = axis::variable<>; in main() 35 auto v = std::vector<axis::variant<R, I, V>>(); in main() 41 BOOST_TEST_EQ(h.axis(0), v[0]); in main() 42 BOOST_TEST_EQ(h.axis(1), v[1]); in main() 43 BOOST_TEST_EQ(h.axis(2), v[2]); in main() 47 BOOST_TEST_EQ(h2.axis(0), v[0]); in main() 48 BOOST_TEST_EQ(h2.axis(1), v[1]); in main() 49 BOOST_TEST_EQ(h2.axis(2), v[2]); in main() [all …]
|
D | axis_variable_test.cpp | 23 BOOST_TEST(std::is_nothrow_move_assignable<axis::variable<>>::value); in main() 24 BOOST_TEST(std::is_nothrow_move_constructible<axis::variable<>>::value); in main() 28 BOOST_TEST_THROWS(axis::variable<>(std::vector<double>{}), std::invalid_argument); in main() 29 BOOST_TEST_THROWS(axis::variable<>({1.0}), std::invalid_argument); in main() 30 BOOST_TEST_THROWS(axis::variable<>({1.0, 1.0}), std::invalid_argument); in main() 31 BOOST_TEST_THROWS(axis::variable<>({1.0, -1.0}), std::invalid_argument); in main() 36 axis::variable<> a{{-1, 0, 1}, "foo"}; in main() 39 BOOST_TEST_EQ(static_cast<const axis::variable<>&>(a).metadata(), "foo"); in main() 41 BOOST_TEST_EQ(static_cast<const axis::variable<>&>(a).metadata(), "bar"); in main() 61 axis::variable<> b; in main() [all …]
|
D | axis_integer_test.cpp | 21 BOOST_TEST(std::is_nothrow_move_assignable<axis::integer<>>::value); in main() 22 BOOST_TEST(std::is_nothrow_move_constructible<axis::integer<>>::value); in main() 25 { BOOST_TEST_THROWS(axis::integer<>(1, -1), std::invalid_argument); } in main() 29 axis::integer<double> a{-1, 2, "foo"}; in main() 31 BOOST_TEST_EQ(static_cast<const axis::integer<double>&>(a).metadata(), "foo"); in main() 33 BOOST_TEST_EQ(static_cast<const axis::integer<double>&>(a).metadata(), "bar"); in main() 48 axis::integer<double> b; in main() 52 axis::integer<double> c = std::move(b); in main() 54 axis::integer<double> d; in main() 62 axis::integer<> a; in main() [all …]
|
D | axis_size.cpp | 15 using regular = axis::regular<>; in main() 16 using regular_float = axis::regular<float>; in main() 17 using regular_pow = axis::regular<double, axis::transform::pow>; in main() 18 using regular_no_metadata = axis::regular<double, axis::transform::id, axis::null_type>; in main() 19 using circular = axis::circular<>; in main() 20 using variable = axis::variable<>; in main() 21 using integer = axis::integer<>; in main() 22 using category = axis::category<>; in main() 23 using variant = axis::variant<regular, circular, variable, integer, category>; in main()
|
D | axis_regular_test.cpp | 22 namespace tr = axis::transform; in main() 24 BOOST_TEST(std::is_nothrow_move_assignable<axis::regular<>>::value); in main() 25 BOOST_TEST(std::is_nothrow_move_constructible<axis::regular<>>::value); in main() 29 BOOST_TEST_THROWS(axis::regular<>(1, 0, 0), std::invalid_argument); in main() 30 BOOST_TEST_THROWS(axis::regular<>(0, 0, 1), std::invalid_argument); in main() 35 axis::regular<> a{4, -2, 2}; in main() 36 axis::regular<> b; in main() 40 axis::regular<> c = std::move(b); in main() 42 axis::regular<> d; in main() 50 axis::regular<> a{4, -2, 2, "foo"}; in main() [all …]
|
/third_party/boost/boost/histogram/axis/ |
D | traits.hpp | 31 static axis::null_type null_value; 40 auto traits_options(priority<2>) -> axis::option::bitset<Axis::options()>; 43 auto traits_options(priority<1>) -> decltype(&Axis::update, axis::option::growth_t{}); 46 auto traits_options(priority<0>) -> axis::option::none_t; 54 .test(axis::option::underflow | axis::option::overflow)); 65 return static_if<std::is_same<J, axis::index_type>>(std::forward<I>(i), in value_method_switch() 117 axis::null_type& metadata_impl(A&&, float) { in metadata_impl() 123 namespace axis { namespace 176 using is_reducible = std::is_constructible<Axis, const Axis&, axis::index_type, 177 axis::index_type, unsigned>; [all …]
|
/third_party/boost/libs/histogram/doc/html/ |
D | histogram_HTML.manifest | 8 boost/histogram/axis/null_type.html 74 boost/histogram/axis/boolean.html 75 boost/histogram/axis/category.html 76 boost/histogram/axis/integer.html 77 boost/histogram/axis/interval_view.html 78 boost/histogram/axis/iterator_mixin.html 79 boost/histogram/axis/metadata_base.html 80 boost/histogram/axis/option/bit.html 81 boost/histogram/axis/option/bitset.html 82 boost/histogram/axis/option/circular.html [all …]
|
/third_party/boost/libs/histogram/benchmark/ |
D | axis_size.cpp | 15 using regular = axis::regular<>; in main() 16 using regular_float = axis::regular<float>; in main() 17 using regular_pow = axis::regular<double, axis::transform::pow>; in main() 18 using regular_no_metadata = axis::regular<double, axis::transform::id, axis::null_type>; in main() 19 using circular = axis::circular<>; in main() 20 using variable = axis::variable<>; in main() 21 using integer = axis::integer<>; in main() 22 using category = axis::category<>; in main() 23 using boolean = axis::boolean<>; in main() 24 using boolean_no_metadata = axis::boolean<axis::null_type>; in main() [all …]
|
/third_party/boost/libs/histogram/examples/ |
D | getting_started_listing_05.cpp | 25 boost::histogram::axis::regular<>, 26 boost::histogram::axis::integer<> 35 using axis_t = boost::histogram::axis::variant< 36 boost::histogram::axis::regular<>, 37 boost::histogram::axis::variable<>, 38 boost::histogram::axis::integer<> 51 hs.hist_ = make_histogram(axis::regular<>(5, 0, 1), axis::integer<>(0, 3)); in main() 53 hs.hist_ = make_histogram(axis::regular<>(3, 1, 2), axis::integer<>(4, 6)); in main() 58 hd.hist_ = make_histogram(axis::regular<>(5, 0, 1), axis::integer<>(0, 3)); in main() 60 hd.hist_ = make_histogram(axis::regular<>(3, -1, 2)); in main() [all …]
|
D | guide_axis_growing.cpp | 21 auto h1 = make_histogram(axis::regular<double, in main() 24 axis::option::growth_t>{2, 0., 1.}); in main() 29 assert(h1.axis().size() == 2); in main() 30 assert(h1.axis().bin(0).lower() == 0.0); in main() 31 assert(h1.axis().bin(1).upper() == 1.0); in main() 36 assert(h1.axis().size() == 3); in main() 37 assert(h1.axis().bin(0).lower() == -0.5); in main() 38 assert(h1.axis().bin(2).upper() == 1.0); in main() 42 assert(h1.axis().size() == 5); in main() 43 assert(h1.axis().bin(0).lower() == -0.5); in main() [all …]
|
D | guide_histogram_reduction.cpp | 20 auto h = make_histogram(axis::regular<>(4, 0.0, 4.0), axis::regular<>(4, -2.0, 2.0)); in main() 32 assert(h2.axis(0) == axis::regular<>(3, 0.0, 3.0)); in main() 33 assert(h2.axis(1) == axis::regular<>(2, -2.0, 2.0)); in main() 44 assert(h3.axis(0) == h.axis(0)); // unchanged in main() 45 assert(h3.axis(1) == axis::regular<>(2, 0.0, 2.0)); in main()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | matrix_interpolation.inl | 10 tvec3<T, P> & axis, argument 22 axis.x = (T)1.0; 23 axis.y = (T)0.0; 24 axis.z = (T)0.0; 37 axis.x = (T)0.0; 38 axis.y = (T)0.7071; 39 axis.z = (T)0.7071; 41 axis.x = sqrt(xx); 42 axis.y = xy / axis.x; 43 axis.z = xz / axis.x; [all …]
|
D | rotate_normalized_axis.inl | 18 tvec3<T, P> const axis(v); local 20 tvec3<T, P> const temp((static_cast<T>(1) - c) * axis); 23 Rotate[0][0] = c + temp[0] * axis[0]; 24 Rotate[0][1] = 0 + temp[0] * axis[1] + s * axis[2]; 25 Rotate[0][2] = 0 + temp[0] * axis[2] - s * axis[1]; 27 Rotate[1][0] = 0 + temp[1] * axis[0] - s * axis[2]; 28 Rotate[1][1] = c + temp[1] * axis[1]; 29 Rotate[1][2] = 0 + temp[1] * axis[2] + s * axis[0]; 31 Rotate[2][0] = 0 + temp[2] * axis[0] + s * axis[1]; 32 Rotate[2][1] = 0 + temp[2] * axis[1] - s * axis[0]; [all …]
|
/third_party/boost/boost/histogram/detail/ |
D | linearize.hpp | 25 const axis::index_type size, const axis::index_type idx) { in linearize() 26 constexpr bool u = Opts::test(axis::option::underflow); in linearize() 27 constexpr bool o = Opts::test(axis::option::overflow); in linearize() 53 constexpr auto opts = axis::traits::get_options<Axis>{} & in linearize() 54 (axis::option::underflow | axis::option::overflow); in linearize() 55 return linearize(opts, out, stride, ax.size(), axis::traits::index(ax, v)); in linearize() 60 std::size_t linearize_growth(Index& out, axis::index_type& shift, in linearize_growth() 62 axis::index_type idx; in linearize_growth() 63 std::tie(idx, shift) = axis::traits::update(a, v); in linearize_growth() 64 constexpr bool u = axis::traits::get_options<Axis>::test(axis::option::underflow); in linearize_growth() [all …]
|
/third_party/freetype/src/autofit/ |
D | afhints.c | 38 af_axis_hints_new_segment( AF_AxisHints axis, in af_axis_hints_new_segment() argument 46 if ( axis->num_segments < AF_SEGMENTS_EMBEDDED ) in af_axis_hints_new_segment() 48 if ( !axis->segments ) in af_axis_hints_new_segment() 50 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment() 51 axis->max_segments = AF_SEGMENTS_EMBEDDED; in af_axis_hints_new_segment() 54 else if ( axis->num_segments >= axis->max_segments ) in af_axis_hints_new_segment() 56 FT_Int old_max = axis->max_segments; in af_axis_hints_new_segment() 71 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment() 73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment() 75 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/ |
D | afhints.c | 38 af_axis_hints_new_segment( AF_AxisHints axis, in af_axis_hints_new_segment() argument 46 if ( axis->num_segments < AF_SEGMENTS_EMBEDDED ) in af_axis_hints_new_segment() 48 if ( !axis->segments ) in af_axis_hints_new_segment() 50 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment() 51 axis->max_segments = AF_SEGMENTS_EMBEDDED; in af_axis_hints_new_segment() 54 else if ( axis->num_segments >= axis->max_segments ) in af_axis_hints_new_segment() 56 FT_Int old_max = axis->max_segments; in af_axis_hints_new_segment() 71 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment() 73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment() 75 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment() [all …]
|
/third_party/skia/third_party/externals/freetype/src/autofit/ |
D | afhints.c | 136 af_axis_hints_new_segment( AF_AxisHints axis, in af_axis_hints_new_segment() argument 144 if ( axis->num_segments < AF_SEGMENTS_EMBEDDED ) in af_axis_hints_new_segment() 146 if ( !axis->segments ) in af_axis_hints_new_segment() 148 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment() 149 axis->max_segments = AF_SEGMENTS_EMBEDDED; in af_axis_hints_new_segment() 152 else if ( axis->num_segments >= axis->max_segments ) in af_axis_hints_new_segment() 154 FT_Int old_max = axis->max_segments; in af_axis_hints_new_segment() 169 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment() 171 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment() 173 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment() [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-var-fvar-table.hh | 121 const AxisRecord &axis = get_axes ()[axis_index]; in get_axis_deprecated() local 122 info->tag = axis.axisTag; in get_axis_deprecated() 123 info->name_id = axis.axisNameID; in get_axis_deprecated() 124 info->default_value = axis.defaultValue / 65536.f; in get_axis_deprecated() 126 info->min_value = hb_min (info->default_value, axis.minValue / 65536.f); in get_axis_deprecated() 127 info->max_value = hb_max (info->default_value, axis.maxValue / 65536.f); in get_axis_deprecated() 134 const AxisRecord &axis = get_axes ()[axis_index]; in get_axis_info() local 136 info->tag = axis.axisTag; in get_axis_info() 137 info->name_id = axis.axisNameID; in get_axis_info() 138 info->flags = (hb_ot_var_axis_flags_t) (unsigned int) axis.flags; in get_axis_info() [all …]
|