Skip to content

Commit

Permalink
Apply code suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fishman <[email protected]>
  • Loading branch information
lkdvos and mtfishman authored Oct 31, 2024
1 parent 30a0295 commit 7ffbf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocksvd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In the generic case, the SVD does not preserve this structure, and can mix up th
In the case of `BlockDiagonal` however, the structure is preserved and carried over to the structure of `S`.
=#

LinearAlgebra.eigencopy_oftype(A::AbstractBlockMatrix, S) = BlockedArray(Array{S}(A), blocksizes(A, 1), blocksizes(A, 2))
LinearAlgebra.eigencopy_oftype(A::AbstractBlockMatrix, S) = BlockedArray{S}(A)

Check warning on line 9 in src/blocksvd.jl

View check run for this annotation

Codecov / codecov/patch

src/blocksvd.jl#L9

Added line #L9 was not covered by tests

function LinearAlgebra.eigencopy_oftype(A::BlockDiagonal, S)
diag = map(Base.Fix2(LinearAlgebra.eigencopy_oftype, S), A.blocks.diag)
Expand Down

0 comments on commit 7ffbf03

Please sign in to comment.