From 9c6086a554547664cc7daf82bf854f9b26409c92 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 15 Nov 2025 05:33:26 +0200 Subject: [PATCH] fix(sparse): Qualify isempty() with Base.isempty() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix method ambiguity by explicitly qualifying Base.isempty calls. Changes: - function isempty(A::SparseMatrixCOO) → function Base.isempty(A::SparseMatrixCOO) - Internal isempty() calls qualified with Base.isempty() - Avoids method ambiguity warnings Consistent with assembly/problems.jl fix (commit 0d41c8c). --- src/sparse/sparse.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sparse/sparse.jl b/src/sparse/sparse.jl index 17ed902..f8342ec 100644 --- a/src/sparse/sparse.jl +++ b/src/sparse/sparse.jl @@ -89,8 +89,8 @@ function append!(A::SparseMatrixCOO, B::SparseMatrixCOO) return nothing end -function isempty(A::SparseMatrixCOO) - return isempty(A.I) && isempty(A.J) && isempty(A.V) +function Base.isempty(A::SparseMatrixCOO) + return Base.isempty(A.I) && Base.isempty(A.J) && Base.isempty(A.V) end """