Home
last modified time | relevance | path

Searched refs:extents (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/third_party/boost/libs/numeric/ublas/test/tensor/
Dtest_extents.cpp20 using extents = ublas::basic_extents<unsigned>; in BOOST_AUTO_TEST_CASE() typedef
23 auto e0 = extents{}; in BOOST_AUTO_TEST_CASE()
27 auto e1 = extents{1,1}; in BOOST_AUTO_TEST_CASE()
31 auto e2 = extents{1,2}; in BOOST_AUTO_TEST_CASE()
35 auto e3 = extents{2,1}; in BOOST_AUTO_TEST_CASE()
39 auto e4 = extents{2,3}; in BOOST_AUTO_TEST_CASE()
43 auto e5 = extents{2,3,1}; in BOOST_AUTO_TEST_CASE()
47 auto e6 = extents{1,2,3}; // 6 in BOOST_AUTO_TEST_CASE()
51 auto e7 = extents{4,2,3}; // 7 in BOOST_AUTO_TEST_CASE()
55 BOOST_CHECK_THROW( extents({1,0}), std::length_error ); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_einstein_notation.cpp42 for(auto j = 0u; j < A.extents().at(1); ++j) in BOOST_AUTO_TEST_CASE_TEMPLATE()
43 for(auto i = 0u; i < A.extents().at(0); ++i) in BOOST_AUTO_TEST_CASE_TEMPLATE()
46 for(auto j = 0u; j < B.extents().at(1); ++j) in BOOST_AUTO_TEST_CASE_TEMPLATE()
47 for(auto i = 0u; i < B.extents().at(0); ++i) in BOOST_AUTO_TEST_CASE_TEMPLATE()
58 for(auto j = 0u; j < AB.extents().at(1); ++j) in BOOST_AUTO_TEST_CASE_TEMPLATE()
59 for(auto i = 0u; i < AB.extents().at(0); ++i) in BOOST_AUTO_TEST_CASE_TEMPLATE()
60 …BOOST_CHECK_EQUAL( AB.at( i,j ) , value_type(A.at( i,0 ) * ( B.extents().at(0) * (B.extents().at(0… in BOOST_AUTO_TEST_CASE_TEMPLATE()
70 for(auto k = 0u; k < A.extents().at(2); ++k) in BOOST_AUTO_TEST_CASE_TEMPLATE()
71 for(auto j = 0u; j < A.extents().at(1); ++j) in BOOST_AUTO_TEST_CASE_TEMPLATE()
72 for(auto i = 0u; i < A.extents().at(0); ++i) in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dtest_operators_arithmetic.cpp29 : extents{ in fixture()
42 std::vector<extents_type> extents; member
105 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
109 BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(0)) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
110 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
111 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + tensor_type(extents.at(2)), st… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
167 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
170 …BOOST_CHECK_NO_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(0))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
171 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(0)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
172 …BOOST_CHECK_THROW ( tensor_type t = tensor_type(extents.at(1)) + 2 + tensor_type(extents.at(2))… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
[all …]
Dtest_tensor_matrix_vector.cpp102 : extents{ in fixture()
113 std::vector<extents_type> extents; member
136 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
161 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
183 BOOST_CHECK_EQUAL ( t.extents().at(0) , e.at(0) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
184 BOOST_CHECK_EQUAL ( t.extents().at(1) , e.at(1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
197 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
218 BOOST_CHECK_EQUAL ( t.extents().at(0) , e.at(0)*e.at(1) ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
219 BOOST_CHECK_EQUAL ( t.extents().at(1) , 1); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
230 for(auto const& e : extents) in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-ot-extents-cff.c42 hb_glyph_extents_t extents; in test_extents_cff1() local
43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1()
46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1()
47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1()
48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1()
49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1()
60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1()
63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1()
64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1()
65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1()
[all …]
Dtest-ot-metrics-tt-var.c42 hb_glyph_extents_t extents; in test_extents_tt_var() local
43 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
46 g_assert_cmpint (extents.x_bearing, ==, 10); in test_extents_tt_var()
47 g_assert_cmpint (extents.y_bearing, ==, 846); in test_extents_tt_var()
48 g_assert_cmpint (extents.width, ==, 500); in test_extents_tt_var()
49 g_assert_cmpint (extents.height, ==, -846); in test_extents_tt_var()
53 result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
56 g_assert_cmpint (extents.x_bearing, ==, 0); in test_extents_tt_var()
57 g_assert_cmpint (extents.y_bearing, ==, 874); in test_extents_tt_var()
58 g_assert_cmpint (extents.width, ==, 551); in test_extents_tt_var()
[all …]
/third_party/harfbuzz/test/api/
Dtest-ot-extents-cff.c42 hb_glyph_extents_t extents; in test_extents_cff1() local
43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1()
46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1()
47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1()
48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1()
49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1()
60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1()
63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1()
64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1()
65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1()
[all …]
Dtest-ot-metrics-tt-var.c42 hb_glyph_extents_t extents; in test_extents_tt_var() local
43 hb_bool_t result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
46 g_assert_cmpint (extents.x_bearing, ==, 10); in test_extents_tt_var()
47 g_assert_cmpint (extents.y_bearing, ==, 846); in test_extents_tt_var()
48 g_assert_cmpint (extents.width, ==, 500); in test_extents_tt_var()
49 g_assert_cmpint (extents.height, ==, -846); in test_extents_tt_var()
53 result = hb_font_get_glyph_extents (font, 2, &extents); in test_extents_tt_var()
56 g_assert_cmpint (extents.x_bearing, ==, 0); in test_extents_tt_var()
57 g_assert_cmpint (extents.y_bearing, ==, 874); in test_extents_tt_var()
58 g_assert_cmpint (extents.width, ==, 551); in test_extents_tt_var()
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/test/api/
Dtest-ot-extents-cff.c42 hb_glyph_extents_t extents; in test_extents_cff1() local
43 hb_bool_t result = hb_font_get_glyph_extents (font, 1, &extents); in test_extents_cff1()
46 g_assert_cmpint (extents.x_bearing, ==, 52); in test_extents_cff1()
47 g_assert_cmpint (extents.y_bearing, ==, 498); in test_extents_cff1()
48 g_assert_cmpint (extents.width, ==, 381); in test_extents_cff1()
49 g_assert_cmpint (extents.height, ==, -510); in test_extents_cff1()
60 hb_bool_t result_j = hb_font_get_glyph_extents (font_j, 3, &extents); in test_extents_cff1()
63 g_assert_cmpint (extents.x_bearing, ==, 34); in test_extents_cff1()
64 g_assert_cmpint (extents.y_bearing, ==, 840); in test_extents_cff1()
65 g_assert_cmpint (extents.width, ==, 920); in test_extents_cff1()
[all …]
/third_party/harfbuzz/perf/
Dperf-extents.hh11 static void extents (benchmark::State &state, const char *font_path, bool is_var, backend_t backend) in extents() function
39 hb_glyph_extents_t extents; in extents() local
42 hb_font_get_glyph_extents (font, gid, &extents); in extents()
67 BENCHMARK_CAPTURE (extents, cff - ot - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
68 BENCHMARK_CAPTURE (extents, cff - ft - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
69 BENCHMARK_CAPTURE (extents, cff - tp - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
71 BENCHMARK_CAPTURE (extents, cff2 - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
72 BENCHMARK_CAPTURE (extents, cff2 - ft - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
73 BENCHMARK_CAPTURE (extents, cff2 - tp - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
75 BENCHMARK_CAPTURE (extents, cff2/vf - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf",…
[all …]
/third_party/skia/third_party/externals/harfbuzz/perf/
Dperf-extents.hh11 static void extents (benchmark::State &state, const char *font_path, bool is_var, backend_t backend) in extents() function
39 hb_glyph_extents_t extents; in extents() local
42 hb_font_get_glyph_extents (font, gid, &extents); in extents()
67 BENCHMARK_CAPTURE (extents, cff - ot - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
68 BENCHMARK_CAPTURE (extents, cff - ft - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
69 BENCHMARK_CAPTURE (extents, cff - tp - SourceSansPro, FONT_BASE_PATH "SourceSansPro-Regular.otf", f…
71 BENCHMARK_CAPTURE (extents, cff2 - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
72 BENCHMARK_CAPTURE (extents, cff2 - ft - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
73 BENCHMARK_CAPTURE (extents, cff2 - tp - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf", fa…
75 BENCHMARK_CAPTURE (extents, cff2/vf - ot - AdobeVFPrototype, FONT_BASE_PATH "AdobeVFPrototype.otf",…
[all …]
/third_party/boost/libs/numeric/odeint/test/
Dmulti_array.cpp52 vector_type v1( boost::extents[12] ); in BOOST_AUTO_TEST_CASE()
53 vector_type v2( boost::extents[12] ); in BOOST_AUTO_TEST_CASE()
59 vector_type v1( boost::extents[12] ); in BOOST_AUTO_TEST_CASE()
60 vector_type v2( boost::extents[13] ); in BOOST_AUTO_TEST_CASE()
66 vector_type v1( boost::extents[12] ); in BOOST_AUTO_TEST_CASE()
67 vector_type v2( boost::extents[vector_type::extent_range(-1,11)] ); in BOOST_AUTO_TEST_CASE()
73 vector_type v1( boost::extents[12] ); in BOOST_AUTO_TEST_CASE()
74 vector_type v2( boost::extents[vector_type::extent_range(-1,10)] ); in BOOST_AUTO_TEST_CASE()
80 vector_type v1( boost::extents[vector_type::extent_range(-1,10)] ); in BOOST_AUTO_TEST_CASE()
81 vector_type v2( boost::extents[vector_type::extent_range(-1,10)] ); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/pixman/pixman/
Dpixman-region.c79 : &(reg)->extents)
301 if (reg1->extents.x1 != reg2->extents.x1) in PREFIX()
304 if (reg1->extents.x2 != reg2->extents.x2) in PREFIX()
307 if (reg1->extents.y1 != reg2->extents.y1) in PREFIX()
310 if (reg1->extents.y2 != reg2->extents.y2) in PREFIX()
350 rgn->extents.x1, in PREFIX()
351 rgn->extents.y1, in PREFIX()
352 rgn->extents.x2, in PREFIX()
353 rgn->extents.y2); in PREFIX()
370 region->extents = *pixman_region_empty_box; in PREFIX()
[all …]
Dpixman.c241 region->extents.x1 = dest_x; in _pixman_compute_composite_region32()
242 region->extents.x2 = dest_x + width; in _pixman_compute_composite_region32()
243 region->extents.y1 = dest_y; in _pixman_compute_composite_region32()
244 region->extents.y2 = dest_y + height; in _pixman_compute_composite_region32()
246 region->extents.x1 = MAX (region->extents.x1, 0); in _pixman_compute_composite_region32()
247 region->extents.y1 = MAX (region->extents.y1, 0); in _pixman_compute_composite_region32()
248 region->extents.x2 = MIN (region->extents.x2, dest_image->bits.width); in _pixman_compute_composite_region32()
249 region->extents.y2 = MIN (region->extents.y2, dest_image->bits.height); in _pixman_compute_composite_region32()
254 if (region->extents.x1 >= region->extents.x2 || in _pixman_compute_composite_region32()
255 region->extents.y1 >= region->extents.y2) in _pixman_compute_composite_region32()
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dtest-ot-color.cc146 cairo_text_extents_t extents; in layered_glyph_dump() local
156 cairo_glyph_extents (cr, glyphs, num_layers, &extents); in layered_glyph_dump()
163 extents.width += extents.width / 10; in layered_glyph_dump()
164 extents.height += extents.height / 10; in layered_glyph_dump()
165 extents.x_bearing -= extents.width / 20; in layered_glyph_dump()
166 extents.y_bearing -= extents.height / 20; in layered_glyph_dump()
183 cairo_surface_t *surface = cairo_svg_surface_create (output_path, extents.width, extents.height); in layered_glyph_dump()
201 glyph.x = -extents.x_bearing; in layered_glyph_dump()
202 glyph.y = -extents.y_bearing; in layered_glyph_dump()
223 cairo_text_extents_t extents; in dump_glyphs() local
[all …]
Dhb-font.hh195 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents()
197 memset (extents, 0, sizeof (*extents)); in get_font_h_extents()
199 extents, in get_font_h_extents()
202 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents()
204 memset (extents, 0, sizeof (*extents)); in get_font_v_extents()
206 extents, in get_font_v_extents()
329 hb_glyph_extents_t *extents) in get_glyph_extents()
331 memset (extents, 0, sizeof (*extents)); in get_glyph_extents()
334 extents, in get_glyph_extents()
372 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback()
[all …]
Dhb-ot-color-sbix-table.hh152 hb_glyph_extents_t *extents) const in get_extents()
155 return get_png_extents (font, glyph, extents); in get_extents()
224 hb_glyph_extents_t *extents) const in get_png_extents()
237 extents->x_bearing = x_offset; in get_png_extents()
238 extents->y_bearing = y_offset; in get_png_extents()
239 extents->width = png.IHDR.width; in get_png_extents()
240 extents->height = png.IHDR.height; in get_png_extents()
246 extents->x_bearing = roundf (extents->x_bearing * scale); in get_png_extents()
247 extents->y_bearing = roundf (extents->y_bearing * scale); in get_png_extents()
248 extents->width = roundf (extents->width * scale); in get_png_extents()
[all …]
Dhb-ot-cff2-table.cc102 hb_glyph_extents_t *extents) const in get_extents()
123 extents->width = 0; in get_extents()
124 extents->x_bearing = 0; in get_extents()
128 extents->x_bearing = (int32_t)param.min_x.floor (); in get_extents()
129 extents->width = (int32_t)param.max_x.ceil () - extents->x_bearing; in get_extents()
133 extents->height = 0; in get_extents()
134 extents->y_bearing = 0; in get_extents()
138 extents->y_bearing = (int32_t)param.max_y.ceil (); in get_extents()
139 extents->height = (int32_t)param.min_y.floor () - extents->y_bearing; in get_extents()
/third_party/boost/boost/numeric/ublas/tensor/
Dexpression_evaluation.hpp80 return t.extents(); in retrieve_extents()
98 return cast_expr.extents(); in retrieve_extents()
116 return expr.el.extents(); in retrieve_extents()
119 return expr.er.extents(); in retrieve_extents()
142 return expr.e.extents(); in retrieve_extents()
156 auto all_extents_equal(tensor<T,F,A> const& t, basic_extents<S> const& extents) in all_extents_equal() argument
158 return extents == t.extents(); in all_extents_equal()
162 auto all_extents_equal(tensor_expression<T,D> const& expr, basic_extents<S> const& extents) in all_extents_equal() argument
170 if( extents != cast_expr.extents() ) in all_extents_equal()
174 if ( !all_extents_equal(cast_expr, extents)) in all_extents_equal()
[all …]
/third_party/harfbuzz/src/
Dhb-font.hh198 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents()
200 memset (extents, 0, sizeof (*extents)); in get_font_h_extents()
202 extents, in get_font_h_extents()
205 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents()
207 memset (extents, 0, sizeof (*extents)); in get_font_v_extents()
209 extents, in get_font_v_extents()
332 hb_glyph_extents_t *extents) in get_glyph_extents()
334 memset (extents, 0, sizeof (*extents)); in get_glyph_extents()
337 extents, in get_glyph_extents()
375 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback()
[all …]
Dhb-ot-color-sbix-table.hh216 hb_glyph_extents_t *extents) const in get_extents()
219 return get_png_extents (font, glyph, extents); in get_extents()
288 hb_glyph_extents_t *extents) const in get_png_extents()
307 extents->x_bearing = x_offset; in get_png_extents()
308 extents->y_bearing = png.IHDR.height + y_offset; in get_png_extents()
309 extents->width = png.IHDR.width; in get_png_extents()
310 extents->height = -1 * png.IHDR.height; in get_png_extents()
316 extents->x_bearing = font->em_scalef_x (extents->x_bearing * scale); in get_png_extents()
317 extents->y_bearing = font->em_scalef_y (extents->y_bearing * scale); in get_png_extents()
318 extents->width = font->em_scalef_x (extents->width * scale); in get_png_extents()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-font.hh198 hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents()
200 memset (extents, 0, sizeof (*extents)); in get_font_h_extents()
202 extents, in get_font_h_extents()
205 hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents()
207 memset (extents, 0, sizeof (*extents)); in get_font_v_extents()
209 extents, in get_font_v_extents()
334 hb_glyph_extents_t *extents) in get_glyph_extents()
336 memset (extents, 0, sizeof (*extents)); in get_glyph_extents()
339 extents, in get_glyph_extents()
377 void get_h_extents_with_fallback (hb_font_extents_t *extents) in get_h_extents_with_fallback()
[all …]
Dhb-ot-color-sbix-table.hh216 hb_glyph_extents_t *extents) const in get_extents()
219 return get_png_extents (font, glyph, extents); in get_extents()
288 hb_glyph_extents_t *extents) const in get_png_extents()
301 extents->x_bearing = x_offset; in get_png_extents()
302 extents->y_bearing = png.IHDR.height + y_offset; in get_png_extents()
303 extents->width = png.IHDR.width; in get_png_extents()
304 extents->height = -1 * png.IHDR.height; in get_png_extents()
310 extents->x_bearing = font->em_scalef_x (extents->x_bearing * scale); in get_png_extents()
311 extents->y_bearing = font->em_scalef_y (extents->y_bearing * scale); in get_png_extents()
312 extents->width = font->em_scalef_x (extents->width * scale); in get_png_extents()
[all …]
/third_party/boost/boost/compute/utility/
Ddim.hpp31 inline extents<sizeof...(Args)> dim(Args... args) in dim()
33 return extents<sizeof...(Args)>({ static_cast<size_t>(args)... }); in dim()
40 inline extents<1> dim(T arg) in dim()
42 return extents<1>(static_cast<size_t>(arg)); in dim()
52 inline extents<n> dim(BOOST_PP_ENUM_PARAMS(n, size_t e)) \
54 extents<n> exts; \
68 inline extents<N> dim() in dim()
70 return extents<N>(); in dim()
/third_party/boost/libs/compute/include/boost/compute/utility/
Ddim.hpp31 inline extents<sizeof...(Args)> dim(Args... args) in dim()
33 return extents<sizeof...(Args)>({ static_cast<size_t>(args)... }); in dim()
40 inline extents<1> dim(T arg) in dim()
42 return extents<1>(static_cast<size_t>(arg)); in dim()
52 inline extents<n> dim(BOOST_PP_ENUM_PARAMS(n, size_t e)) \
54 extents<n> exts; \
68 inline extents<N> dim() in dim()
70 return extents<N>(); in dim()

12345678910>>...14