We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ddeaf commit 4d74d75Copy full SHA for 4d74d75
src/FillArrays.jl
@@ -629,13 +629,6 @@ function all(f::Function, IM::Eye{T}) where T
629
return all(f(one(T)))
630
end
631
632
-# In particular, these make iszero(Eye(n)) efficient.
633
-# use any/all on scalar to get Boolean error message
634
-any(f::Function, x::AbstractFill) = !isempty(x) && any(f(getindex_value(x)))
635
-all(f::Function, x::AbstractFill) = isempty(x) || all(f(getindex_value(x)))
636
-any(x::AbstractFill) = any(identity, x)
637
-all(x::AbstractFill) = all(identity, x)
638
-
639
count(x::AbstractOnes{Bool}) = length(x)
640
count(x::AbstractZeros{Bool}) = 0
641
count(f, x::AbstractFill) = f(getindex_value(x)) ? length(x) : 0
0 commit comments