We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4087d8 + c2111fb commit e3e8ea7Copy full SHA for e3e8ea7
1 file changed
src/stridelayout.jl
@@ -428,14 +428,14 @@ function dense_dims(@nospecialize T::Type{<:Base.ReshapedArray})
428
d = dense_dims(parent_type(T))
429
if d === nothing
430
return nothing
431
- elseif all(d)
+ elseif all(Bool, d)
432
return ntuple(Compat.Returns(True()), StaticInt(ndims(T)))
433
else
434
return ntuple(Compat.Returns(False()), StaticInt(ndims(T)))
435
end
436
437
438
-is_dense(A) = all(dense_dims(A)) ? True() : False()
+is_dense(A) = all(Bool, dense_dims(A)) ? True() : False()
439
440
"""
441
known_strides(::Type{T}) -> Tuple
0 commit comments