Skip to content

Commit 14f414d

Browse files
committed
Fix tests...
1 parent 2e242f4 commit 14f414d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/matrices.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,16 @@ When A is a `SparseMatrixCSC`, additional checks on the sparsity structure are p
7979
"""
8080
compatible_pattern(A::AbstractMatrix, bg::BipartiteGraph) = size(A) == size(bg.S2)
8181
function compatible_pattern(A::SparseMatrixCSC, bg::BipartiteGraph)
82-
size(A) == size(bg.S2) && nnz(A) == nnz(bg.S2)
82+
return size(A) == size(bg.S2) && nnz(A) == nnz(bg.S2)
8383
end
8484

8585
function compatible_pattern(A::AbstractMatrix, ag::AdjacencyGraph, uplo::Symbol)
86-
size(A) == size(ag.S)
86+
return size(A) == size(ag.S)
8787
end
88+
8889
function compatible_pattern(A::SparseMatrixCSC, ag::AdjacencyGraph, uplo::Symbol)
8990
nnzS = (uplo == :L || uplo == :U) ? (nb_edges(ag) + ag.nb_self_loops) : nnz(ag.S)
90-
size(A) == size(ag.S) && nnz(A) == nnzS
91+
return size(A) == size(ag.S) && nnz(A) == nnzS
9192
end
9293

9394
function check_compatible_pattern(A::AbstractMatrix, bg::BipartiteGraph)

0 commit comments

Comments
 (0)