Skip to content

Commit e867454

Browse files
committed
Improve SubArray check.
1 parent 141a9fa commit e867454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/condense_loopset.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ It returns true for `AbstractArray{T}`s when `check_type(T) == true` and the arr
297297
To provide support for a custom array type, ensure that `check_args` returns true, either through overloading it or subtyping `DenseArray`.
298298
Additionally, define `pointer` and `stride` methods.
299299
"""
300-
@inline check_args(A::SubArray) = check_args(parent(A))
300+
@inline check_args(A::SubArray{T,N,P,I}) where {T,N,P,I<:Tuple{Vararg{Union{Int,Colon,AbstractRange}}}} = check_args(parent(A))
301301
@inline check_args(A::OffsetArray) = check_args(parent(A))
302302
@inline check_args(A::Adjoint) = check_args(parent(A))
303303
@inline check_args(A::Transpose) = check_args(parent(A))

0 commit comments

Comments
 (0)