Skip to content

Commit fc1dff0

Browse files
Merge branch 'master' into lazyarray-setindex
2 parents 1065f56 + 1a69191 commit fc1dff0

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- '1.2'
1918
- '1.6'
2019
- '1.7'
2120
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1111

1212
[compat]
13+
ArrayInterface = "6"
1314
ChainRulesCore = "0.8, 0.9, 0.10, 1"
1415
Requires = "1"
15-
julia = "1"
16+
julia = "1.6"
1617

1718
[extras]
1819
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"

src/array_interface.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ Base.pointer(x::ComponentArray{T,N,A,Axes}) where {T,N,A<:DenseArray,Axes} = poi
138138
Base.unsafe_convert(::Type{Ptr{T}}, x::ComponentArray{T,N,A,Axes}) where {T,N,A,Axes} = Base.unsafe_convert(Ptr{T}, getdata(x))
139139

140140
Base.strides(x::ComponentArray) = strides(getdata(x))
141-
ArrayInterfaceCore.strides(A::ComponentArray) = ArrayInterfaceCore.strides(parent(A))
142141
for f in [:device, :stride_rank, :contiguous_axis, :contiguous_batch_size, :dense_dims]
143142
@eval ArrayInterface.$f(::Type{ComponentArray{T,N,A,Axes}}) where {T,N,A,Axes} = ArrayInterface.$f(A)
144143
end

src/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _print_type_short(io, ::Type{<:ComponentArray{T,N,<:SubArray}}; color=:normal) w
3535
_print_type_short(io, ::Type{<:ComponentArray{T,1,<:SubArray}}; color=:normal) where {T} = printstyled(io, "ComponentVector{$T,SubArray...}"; color=color)
3636
_print_type_short(io, ::Type{<:ComponentArray{T,2,<:SubArray}}; color=:normal) where {T} = printstyled(io, "ComponentMatrix{$T,SubArray...}"; color=color)
3737

38-
@static if VERSION >= v"1.6"
38+
@static if v"1.6" VERSION < v"1.8"
3939
Base.print_type_stacktrace(io, CA::Type{<:ComponentArray}; color=:normal) = _print_type_short(io, CA; color=color)
4040
end
4141

0 commit comments

Comments
 (0)