mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-26 20:01:32 +00:00
fix(sparse): Qualify isempty() with Base.isempty()
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).
This commit is contained in:
@@ -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
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user