Skip to content

Commit

Permalink
Remove unnecessary Base. prefix (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Nov 24, 2022
1 parent a6117f0 commit 2445435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SparseArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export AbstractSparseArray, AbstractSparseMatrix, AbstractSparseVector,
# `iszero` and `!iszero` don't guarantee to return a boolean but we need one that does
# to remove the handle the structure of the array.
@inline _iszero(x) = iszero(x) === true
@inline _iszero(x::Number) = Base.iszero(x)
@inline _iszero(x::AbstractArray) = Base.iszero(x)
@inline _iszero(x::Number) = iszero(x)
@inline _iszero(x::AbstractArray) = iszero(x)
@inline _isnotzero(x) = iszero(x) !== true # like `!iszero(x)`, but handles `x::Missing`
@inline _isnotzero(x::Number) = !iszero(x)
@inline _isnotzero(x::AbstractArray) = !iszero(x)
Expand Down

0 comments on commit 2445435

Please sign in to comment.