JuliaArrays / BlockDiagonals.jl

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

Convert between `BlockDiagonals` of different block types #105

Closed mzgubic closed 2 years ago

mzgubic commented 2 years ago

Helps with #102

The idea is that if

julia> convert(Matrix, Symmetric(rand(2, 2)))

is allowed, then so should convert between BlockDiagonals where the blocks are of these types, e.g.

julia> convert(BlockDiagonal{Float64, Matrix{Float64}}, BlockDiagonal([Symmetric(rand(2, 2))]))
codecov[bot] commented 2 years ago

Codecov Report

Merging #105 (650b6ed) into master (b2ee90a) will decrease coverage by 0.13%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   96.11%   95.98%   -0.14%     
==========================================
  Files           5        5              
  Lines         335      324      -11     
==========================================
- Hits          322      311      -11     
  Misses         13       13              
Impacted Files Coverage Δ
src/blockdiagonal.jl 86.76% <100.00%> (+0.40%) :arrow_up:
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...650b6ed. Read the comment docs.