JuliaSparse / SparseArrays.jl

SparseArrays.jl is a Julia stdlib
https://sparsearrays.juliasparse.org/
Other
90 stars 52 forks source link

Extend `copytrito!` for a sparse source #533

Closed jishnub closed 5 months ago

jishnub commented 5 months ago
julia> S = sprand(100, 100, 0.01);

julia> M = zeros(size(S));

julia> @btime copytrito!($M, $S, 'U');
  20.779 μs (0 allocations: 0 bytes) # main
  2.050 μs (0 allocations: 0 bytes) # this PR
codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 84.10%. Comparing base (33fbc75) to head (16076cd).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #533 +/- ## ========================================== + Coverage 76.42% 84.10% +7.67% ========================================== Files 12 12 Lines 8969 9020 +51 ========================================== + Hits 6855 7586 +731 + Misses 2114 1434 -680 ```

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

ViralBShah commented 5 months ago

Looks straightforward. Please merge when ready.