Skip to content

Commit 4245ffe

Browse files
authored
One more OffsetArray fix (#306)
* add dense_dims for OffsetArrays.jl
1 parent a81fb30 commit 4245ffe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/ArrayInterfaceOffsetArrays/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterfaceOffsetArrays"
22
uuid = "015c0d05-e682-4f19-8f0a-679ce4c54826"
3-
version = "0.1.4"
3+
version = "0.1.5"
44

55
[deps]
66
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

lib/ArrayInterfaceOffsetArrays/src/ArrayInterfaceOffsetArrays.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ end
4848
function ArrayInterface.stride_rank(T::Type{<:OffsetArray})
4949
ArrayInterface.stride_rank(ArrayInterface.parent_type(T))
5050
end
51+
function ArrayInterface.dense_dims(T::Type{<:OffsetArray})
52+
ArrayInterface.dense_dims(ArrayInterface.parent_type(T))
53+
end
5154
function ArrayInterface.contiguous_axis(T::Type{<:OffsetArray})
5255
ArrayInterface.contiguous_axis(ArrayInterface.parent_type(T))
5356
end

0 commit comments

Comments
 (0)