Skip to content

Commit 2f80c18

Browse files
committed
update BlockDiagonal data access
1 parent 1cf4cb9 commit 2f80c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocksparsearray/blockdiagonalarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313

1414
# SVD implementation
1515
function eigencopy_oftype(A::BlockDiagonal, T)
16-
diag = map(Base.Fix2(eigencopy_oftype, T), A.blocks.diag)
16+
diag = map(Base.Fix2(eigencopy_oftype, T), LinearAlgebra.diag(blocks(A)))
1717
return BlockDiagonal(diag)
1818
end
1919

0 commit comments

Comments
 (0)