Avatar for the xtensor-stack user
xtensor-stack
xtensor
BlogDocsChangelog

Fix infinite loop in xt::roll on arrays with a zero-length dimension

#2922Merged
Comparing
f14XuanLv:fix/roll-empty-array
(
10a24af
) with
master
(
9575b39
)
CodSpeed Performance Gauge
0%
Untouched
255

Benchmarks

255 total
lambda_higher_pow[32]
benchmark/benchmark_lambda_expressions.cpp::xt
CodSpeed Performance Gauge
0%
13 µs13 µs
lambda_cube[64]
benchmark/benchmark_lambda_expressions.cpp::xt
CodSpeed Performance Gauge
0%
41.2 µs41.3 µs
random_assign_forloop
benchmark/benchmark_random.cpp::xt::random_bench
CodSpeed Performance Gauge
0%
24.5 µs24.5 µs
random_assign_xarray
benchmark/benchmark_random.cpp::xt::random_bench
CodSpeed Performance Gauge
0%
24.7 µs24.7 µs
view_loop_raw[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
33.5 µs33.6 µs
view_loop_view[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
34.7 µs34.7 µs
xexpression_higher_pow[32]
benchmark/benchmark_lambda_expressions.cpp::xt
CodSpeed Performance Gauge
0%
33.5 µs33.5 µs
view_loop[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
35.9 µs36 µs
view_iterator[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
36.2 µs36.2 µs
math_xtensor_1[sqrt_fn, xtensor<double, 2>][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
36.7 µs36.8 µs
view_assign[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
37.2 µs37.2 µs
view_assign_view_noalias[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
38.4 µs38.4 µs
math_ref_1[sqrt_fn][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
41.4 µs41.5 µs
xexpression_cube[64]
benchmark/benchmark_lambda_expressions.cpp::xt
CodSpeed Performance Gauge
0%
41.6 µs41.6 µs
math_xtensor_1[rint_fn, xtensor<double, 2>][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
43.7 µs43.8 µs
math_xtensor_1[nearbyint_fn, xtensor<double, 2>][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
43.7 µs43.8 µs
view_dynamic_iterator[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
46.7 µs46.7 µs
boolean_func_ref[xtensor<double, 2>][64]
benchmark/benchmark_math.cpp::xt
CodSpeed Performance Gauge
0%
44.6 µs44.6 µs
builder_xarange[xtensor<double, 1>]
benchmark/benchmark_builder.cpp::xt
CodSpeed Performance Gauge
0%
47.9 µs47.9 µs
view_assign_strided_view_noalias[float]
benchmark/benchmark_views.cpp::xt::view_benchmarks
CodSpeed Performance Gauge
0%
48.1 µs48.1 µs
math_ref_1[nearbyint_fn][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
48.4 µs48.4 µs
math_ref_1[rint_fn][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
49.5 µs49.5 µs
builder_arange_for_loop_assign[xtensor<double, 1>]
benchmark/benchmark_builder.cpp::xt
CodSpeed Performance Gauge
0%
49.8 µs49.8 µs
math_ref_1[trunc_fn][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
50.6 µs50.6 µs
math_xtensor_1[trunc_fn, xtensor<double, 2>][64]
benchmark/benchmark_math.cpp::xt::math
CodSpeed Performance Gauge
0%
51.7 µs51.8 µs

Commits

Click on a commit to change the comparison range
Base
master
9575b39
-0.01%
fix: handle empty arrays in xt::roll to avoid infinite loop
10a24af
21 days ago
by f14XuanLv
© 2026 CodSpeed Technology
Home Terms Privacy Docs