Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/stridelayout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,14 @@ function dense_dims(@nospecialize T::Type{<:Base.ReshapedArray})
d = dense_dims(parent_type(T))
if d === nothing
return nothing
elseif all(d)
elseif all(Bool, d)
return ntuple(Compat.Returns(True()), StaticInt(ndims(T)))
else
return ntuple(Compat.Returns(False()), StaticInt(ndims(T)))
end
end

is_dense(A) = all(dense_dims(A)) ? True() : False()
is_dense(A) = all(Bool, dense_dims(A)) ? True() : False()

"""
known_strides(::Type{T}) -> Tuple
Expand Down
Loading