Skip to content

Commit b8451af

Browse files
committed
Apply suggestion from @blegat
1 parent c351e79 commit b8451af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/matrices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function compatible_pattern(A::AbstractMatrix, ag::AdjacencyGraph, uplo::Symbol)
8686
return size(A) == size(ag.S)
8787
end
8888

89-
function compatible_pattern(A::AbstractSparseMatrixCSC, ag::AdjacencyGraph, uplo::Symbol)
89+
function compatible_pattern(A::SparseMatrixCSC, ag::AdjacencyGraph, uplo::Symbol)
9090
nnzS = (uplo == :L || uplo == :U) ? (nb_edges(ag) + ag.nb_self_loops) : nnz(ag.S)
9191
return size(A) == size(ag.S) && nnz(A) == nnzS
9292
end

0 commit comments

Comments
 (0)