JuliaArrays / BlockDiagonals.jl

Functionality for working efficiently with block diagonal matrices.
MIT License
49 stars 11 forks source link

implement `Base.copy` #104

Closed mzgubic closed 2 years ago

mzgubic commented 2 years ago

Closes #101

julia> @time b + D;
  0.000035 seconds (103 allocations: 29.953 KiB)

The fallback method in Base resorts to looping over eachindex, including the off-diagonal ones.

codecov[bot] commented 2 years ago

Codecov Report

Merging #104 (2723bb0) into master (b2ee90a) will decrease coverage by 0.16%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #104      +/-   ##
==========================================
- Coverage   96.11%   95.95%   -0.17%     
==========================================
  Files           5        5              
  Lines         335      321      -14     
==========================================
- Hits          322      308      -14     
  Misses         13       13              
Impacted Files Coverage Δ
src/blockdiagonal.jl 86.15% <100.00%> (-0.21%) :arrow_down:
src/linalg.jl 95.34% <0.00%> (-0.21%) :arrow_down:
src/base_maths.jl 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b2ee90a...2723bb0. Read the comment docs.