Skip to content

Commit e49e567

Browse files
authored
Fix strides
1 parent 57c81ad commit e49e567

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ArrayInterfaceOffsetArrays/src/ArrayInterfaceOffsetArrays.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ end
2727
function ArrayInterface.axes_types(::Type{T}) where {T<:OffsetArrays.OffsetArray}
2828
Static.eachop_tuple(_offset_axis_type, Static.nstatic(Val(ndims(T))), ArrayInterface.parent_type(T))
2929
end
30+
ArrayInterface.strides(A::OffsetArray) = ArrayInterface.strides(parent(A))
3031
function ArrayInterface.known_offsets(::Type{A}) where {A<:OffsetArrays.OffsetArray}
3132
ntuple(identity -> nothing, Val(ndims(A)))
3233
end

0 commit comments

Comments
 (0)