JuliaArrays / FillArrays.jl

Julia package for lazily representing matrices filled with a single entry
https://juliaarrays.github.io/FillArrays.jl/
MIT License
181 stars 38 forks source link

Specialize broadcasting more unary functions over a OneElement #384

Closed jishnub closed 2 months ago

jishnub commented 2 months ago

After this,

julia> O = OneElement(-4, (4,2), (4,4))
4×4 OneElement{Int64, 2, Tuple{Int64, Int64}, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}:
 ⋅   ⋅  ⋅  ⋅
 ⋅   ⋅  ⋅  ⋅
 ⋅   ⋅  ⋅  ⋅
 ⋅  -4  ⋅  ⋅

julia> abs.(O)
4×4 OneElement{Int64, 2, Tuple{Int64, Int64}, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}:
 ⋅  ⋅  ⋅  ⋅
 ⋅  ⋅  ⋅  ⋅
 ⋅  ⋅  ⋅  ⋅
 ⋅  4  ⋅  ⋅
codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 99.90%. Comparing base (9868632) to head (bb32d2a). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #384 +/- ## ========================================== - Coverage 99.90% 99.90% -0.01% ========================================== Files 8 8 Lines 1110 1106 -4 ========================================== - Hits 1109 1105 -4 Misses 1 1 ```

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