We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfed1a7 commit 6d760a2Copy full SHA for 6d760a2
src/ranges.jl
@@ -374,7 +374,7 @@ end
374
Returns valid indices for each array in `x` along dimension `dim`
375
"""
376
@propagate_inbounds function indices(x::Tuple, dim)
377
- inds = map(x_i -> indices(x_i, dim), x)
+ inds = map(Base.Fix2(indices, dim), x)
378
return reduce_tup(_pick_range, inds)
379
end
380
src/stridelayout.jl
@@ -671,7 +671,7 @@ end
671
@inline function _reinterp_strides(stp::Tuple, els::StaticInt, elp::StaticInt)
672
if elp % els == 0
673
N = elp ÷ els
674
- return map(i -> N * i, stp)
+ return map(Base.Fix2(*, N), stp)
675
else
676
return map(stp) do i
677
d, r = divrem(elp * i, els)
0 commit comments