We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c351e79 commit b8451afCopy full SHA for b8451af
1 file changed
src/matrices.jl
@@ -86,7 +86,7 @@ function compatible_pattern(A::AbstractMatrix, ag::AdjacencyGraph, uplo::Symbol)
86
return size(A) == size(ag.S)
87
end
88
89
-function compatible_pattern(A::AbstractSparseMatrixCSC, ag::AdjacencyGraph, uplo::Symbol)
+function compatible_pattern(A::SparseMatrixCSC, ag::AdjacencyGraph, uplo::Symbol)
90
nnzS = (uplo == :L || uplo == :U) ? (nb_edges(ag) + ag.nb_self_loops) : nnz(ag.S)
91
return size(A) == size(ag.S) && nnz(A) == nnzS
92
0 commit comments