Home
last modified time | relevance | path

Searched refs:axis (Results 1 – 25 of 1358) sorted by relevance

12345678910>>...55

/third_party/boost/libs/histogram/test/
Daxis_variant_test.cpp23 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 …]
Dhistogram_test.cpp38 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 …]
Dalgorithm_reduce_test.cpp25 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 …]
Ddeduction_guides_test.cpp23 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 …]
Dhistogram_mixed_test.cpp26 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 …]
Dalgorithm_project_test.cpp25 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 …]
Daxis_category_test.cpp24 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 …]
Dhistogram_dynamic_test.cpp31 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 …]
Daxis_variable_test.cpp23 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 …]
Daxis_integer_test.cpp21 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 …]
/third_party/boost/boost/histogram/axis/
Dtraits.hpp31 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/mindspore/mindspore/numpy/
Darray_ops.py40 def expand_dims(a, axis): argument
69 if not isinstance(axis, (int, tuple, list)):
70 _raise_type_error("axis must be tuple, list or int, but got ", axis)
71 if isinstance(axis, int):
72 return F.expand_dims(a, axis)
73 ndim = a.ndim + len(axis)
74 axis = _canonicalize_axis(axis, ndim)
75 for ax in axis:
80 def squeeze(a, axis=None): argument
107 return a.squeeze(axis)
[all …]
/third_party/boost/libs/histogram/doc/html/
Dhistogram_HTML.manifest8 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/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Done_hot_tests.cc25 OpParameter *CreateParameter(int axis) { in CreateParameter() argument
27 param->axis_ = axis; in CreateParameter()
34 int axis = -1; in TEST_F() local
40 …output_shape.insert(output_shape.begin() + (axis + input_shape.size() + 1) % (input_shape.size() +… in TEST_F()
44 auto *param = CreateParameter(axis); in TEST_F()
55 int axis = -1; in TEST_F() local
60 …output_shape.insert(output_shape.begin() + (axis + input_shape.size() + 1) % (input_shape.size() +… in TEST_F()
65 auto *param = CreateParameter(axis); in TEST_F()
76 int axis = -1; in TEST_F() local
81 …output_shape.insert(output_shape.begin() + (axis + input_shape.size() + 1) % (input_shape.size() +… in TEST_F()
[all …]
Dreduce_tests.cc26 OpParameter *CreateParameter(const std::vector<int> &axis, schema::ReduceMode mode, bool keep_dims)… in CreateParameter() argument
31 param->num_axes_ = axis.size(); in CreateParameter()
33 for (int i = 0; i < axis.size(); ++i) { in CreateParameter()
34 param->axes_[i] = axis[i]; in CreateParameter()
41 std::vector<int> axis = {1, 2}; in TEST_F() local
48 auto *param = CreateParameter(axis, schema::ReduceMode_ReduceMean, false); in TEST_F()
50 {{static_cast<int>(axis.size())}, axis.data(), CONST_TENSOR, kNumberTypeInt32}}, in TEST_F()
56 std::vector<int> axis = {1, 2}; in TEST_F() local
63 auto *param = CreateParameter(axis, schema::ReduceMode_ReduceSum, false); in TEST_F()
65 {{static_cast<int>(axis.size())}, axis.data(), CONST_TENSOR, kNumberTypeInt32}}, in TEST_F()
[all …]
Dargminmax_tests.cc26 OpParameter *CreateParameter(schema::PrimitiveType type, int axis, int topk, bool out_value, bool k… in CreateParameter() argument
29 param->axis_ = axis; in CreateParameter()
40 int axis = 0; in TEST_F() local
48 auto *param = CreateParameter(type, axis, topk, out_value); in TEST_F()
55 int axis = 0; in TEST_F() local
63 auto *param = CreateParameter(type, axis, topk, out_value); in TEST_F()
70 int axis = 1; in TEST_F() local
79 auto *param = CreateParameter(type, axis, topk, out_value); in TEST_F()
86 int axis = 1; in TEST_F() local
96 auto *param = CreateParameter(type, axis, topk, out_value); in TEST_F()
[all …]
/third_party/mindspore/tests/st/ops/ascend/test_aicpu_ops/
Dtest_pack.py26 def __init__(self, x, axis): argument
28 self.stack = P.Stack(axis)
38 axis = -1
39 net = Net((Tensor(x), Tensor(y)), axis)
44 assert np.array_equal(output.asnumpy(), np.stack([x, y], axis))
50 axis = -1
51 net = Net((Tensor(x), Tensor(y)), axis)
56 assert np.array_equal(output.asnumpy(), np.stack([x, y], axis))
62 axis = -1
63 net = Net((Tensor(x), Tensor(y)), axis)
[all …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dmatrix_interpolation.inl10 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 …]
/third_party/boost/boost/histogram/detail/
Dlinearize.hpp25 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/boost/libs/histogram/benchmark/
Daxis_size.cpp15 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/
Dgetting_started_listing_05.cpp25 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 …]
/third_party/mindspore/mindspore/explainer/
D_operators.py75 def argmax(inputs: Tensor, axis: int = -1, keep_dims: bool = False) -> Tensor:
78 outputs = np.argmax(inputs_np, axis=axis)
81 outputs = np.expand_dims(outputs, axis=axis)
86 def argmin(inputs: Tensor, axis: int = -1, keep_dims: bool = False) -> Tensor:
89 outputs = np.argmin(inputs_np, axis=axis)
92 outputs = np.expand_dims(outputs, axis=axis)
97 def argsort(inputs: Tensor, axis: int = -1, descending: bool = False) -> Tensor:
101 indices_np = np.argsort(factor * inputs_np, axis=axis)
133 def maximum(inputs: Tensor, axis: _Axis = (), keep_dims: bool = False) -> Tensor:
136 outputs = max_op(inputs, axis)
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafhints.c38 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/freetype/src/autofit/
Dafhints.c38 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/mindspore/mindspore/_extends/parse/
Dstandard_method.py55 def mean(x, axis=(), keep_dims=False): argument
78 if axis is None:
79 axis = ()
81 return reduce_mean(x, axis)
84 def all_(x, axis=(), keep_dims=False): argument
97 if axis is None:
98 axis = ()
100 return reduce_all(x, axis)
103 def any_(x, axis=(), keep_dims=False): argument
115 if axis is None:
[all …]

12345678910>>...55