Skip to content

Commit 7ef0aff

Browse files
committed
fixup! Add blockdiagonalization utility functions
1 parent e10a7ae commit 7ef0aff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/factorizations/utility.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ function isblockdiagonal(A::AbstractBlockSparseMatrix)
5353
return true
5454
end
5555

56+
function isblockpermuteddiagonal(A::AbstractBlockSparseMatrix)
57+
return allunique(first.(eachblockstoredindex(A))) &&
58+
allunique(last.(eachblockstoredindex(A)))
59+
end
60+
5661
"""
5762
BlockDiagonalAlgorithm([f]) <: MatrixAlgebraKit.AbstractAlgorithm
5863

0 commit comments

Comments
 (0)