Skip to content

Commit e74a7aa

Browse files
Generalize from Array to <:DenseArray in dense_dims (#262)
* Generalize from `Array` to `<:DenseArray` in `dense_dims` * Bump version to 5.0.8
1 parent 3ee7ae0 commit e74a7aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "5.0.7"
3+
version = "5.0.8"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/stridelayout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function dense_dims(::Type{T}) where {T}
364364
end
365365
_all_dense(::Val{N}) where {N} = ntuple(_ -> True(), Val{N}())
366366

367-
dense_dims(::Type{Array{T,N}}) where {T,N} = _all_dense(Val{N}())
367+
dense_dims(::Type{<:DenseArray{T,N}}) where {T,N} = _all_dense(Val{N}())
368368
dense_dims(::Type{BitArray{N}}) where {N} = _all_dense(Val{N}())
369369
dense_dims(::Type{<:AbstractRange}) = (True(),)
370370
dense_dims(::Type{<:Tuple}) = (True(),)

0 commit comments

Comments
 (0)