JuliaLinearAlgebra / ArrayLayouts.jl

A Julia package for describing array layouts and more general fast linear algebra
https://julialinearalgebra.github.io/ArrayLayouts.jl/
MIT License
54 stars 10 forks source link

Sort `RangeCumsum` for `AbstractUnitRange` #224

Closed jishnub closed 5 months ago

jishnub commented 5 months ago

This makes sort work for infinite RangeCumsums:

julia> r = RangeCumsum(-2:∞)
ℵ₀-element RangeCumsum{Int64, InfiniteArrays.InfUnitRange{Int64}} with indices OneToInf():
 -2
 -3
 -3
 -2
  0
  3
  7
 12
 18
  ⋮

julia> sort(r)
vcat(5-element Vector{Int64}, ℵ₀-element RangeCumsum{Int64, InfiniteArrays.InfUnitRange{Int64}} with indices OneToInf()) with indices OneToInf():
 -3
 -3
 -2
 -2
  0
  3
  7
 12
 18
  ⋮
codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.97%. Comparing base (4aa8264) to head (2b673e2). Report is 8 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #224 +/- ## ========================================== + Coverage 89.58% 89.97% +0.39% ========================================== Files 11 11 Lines 1844 1896 +52 ========================================== + Hits 1652 1706 +54 + Misses 192 190 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.