@@ -26,7 +26,7 @@ VectorOfArrays{T,N}(A::AbstractVector{<:AbstractArray})
26
26
27
27
VectorOfArrays(
28
28
data::AbstractVector,
29
- elem_ptr::AbstractVector{Int },
29
+ elem_ptr::AbstractVector{<:Integer },
30
30
kernel_size::AbstractVector{<:Dims}
31
31
checks::Function = ArraysOfArrays.full_consistency_checks
32
32
)
@@ -44,7 +44,7 @@ and `ArraysOfArrays.no_consistency_checks`.
44
44
struct VectorOfArrays{
45
45
T, N, M,
46
46
VT<: AbstractVector{T} ,
47
- VI<: AbstractVector{Int } ,
47
+ VI<: AbstractVector{<:Integer } ,
48
48
VD<: AbstractVector{Dims{M}}
49
49
} <: AbstractVector{Array{T,N}}
50
50
data:: VT
@@ -73,7 +73,7 @@ struct VectorOfArrays{
73
73
) where {
74
74
T, M,
75
75
VT<: AbstractVector{T} ,
76
- VI<: AbstractVector{Int } ,
76
+ VI<: AbstractVector{<:Integer } ,
77
77
VD<: AbstractVector{Dims{M}}
78
78
}
79
79
N = length ((ntuple (_ -> 0 , Val {M} ())... , 0 ))
@@ -429,7 +429,7 @@ VectorOfVectors(A::AbstractVector{<:AbstractVector})
429
429
VectorOfVectors{T}(A::AbstractVector{<:AbstractVector}) where {T}
430
430
431
431
VectorOfVectors(
432
- data::AbstractVector, elem_ptr::AbstractVector{Int },
432
+ data::AbstractVector, elem_ptr::AbstractVector{<:Integer },
433
433
checks::Function = full_consistency_checks
434
434
)
435
435
@@ -439,7 +439,7 @@ See also [VectorOfArrays](@ref).
439
439
const VectorOfVectors{
440
440
T,
441
441
VT<: AbstractVector{T} ,
442
- VI<: AbstractVector{Int } ,
442
+ VI<: AbstractVector{<:Integer } ,
443
443
VD<: AbstractVector{Dims{0}}
444
444
} = VectorOfArrays{T,1 ,0 ,VT,VI,VD}
445
445
@@ -452,9 +452,9 @@ VectorOfVectors(A::AbstractVector{<:AbstractVector}) = VectorOfArrays(A)
452
452
453
453
VectorOfVectors (
454
454
data:: AbstractVector ,
455
- elem_ptr:: AbstractVector{Int } ,
455
+ elem_ptr:: AbstractVector{I } ,
456
456
checks:: Function = full_consistency_checks
457
- ) = VectorOfArrays (
457
+ ) where I <: Integer = VectorOfArrays (
458
458
data,
459
459
elem_ptr,
460
460
similar (elem_ptr, Dims{0 }, size (elem_ptr, 1 ) - 1 ),
0 commit comments