Skip to content

Commit 2cc7547

Browse files
committed
Update comment
1 parent 493f680 commit 2cc7547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generic.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,8 @@ ishermitian(x::Number) = (x == conj(x))
13581358
_iszero(V) = iszero(V)
13591359
# A Base.FastContiguousSubArray view of a StridedArray
13601360
FastContiguousSubArrayStrided{T,N,P<:StridedArray,I<:Tuple{AbstractUnitRange, Vararg{Any}}} = Base.SubArray{T,N,P,I,true}
1361-
# using mapreduce instead of all permits vectorization
1361+
# Reducing over the entire array instead of all permits vectorization
1362+
# The loop is equivalent to a mapreduce, but is faster to compile
13621363
function _iszero(V::FastContiguousSubArrayStrided)
13631364
ret = true
13641365
for i in eachindex(V)

0 commit comments

Comments
 (0)