Skip to content

Commit f404d70

Browse files
committed
Add StaticArrays support.
1 parent 61a3f73 commit f404d70

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "2.10.0"
3+
version = "2.11.0"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/ArrayInterface.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ function __init__()
554554
StaticArrays.SArray{S}(y)
555555
end
556556

557+
known_first(::Type{<:StaticArrays.SOneTo}) = 1
558+
known_last(::Type{StaticArrays.SOneTo{N}}) where {N} = N
559+
557560
@require Adapt="79e6a3ab-5dfb-504d-930d-738a2a938a0e" begin
558561
function Adapt.adapt_storage(::Type{<:StaticArrays.SArray{S}},xs::Array) where S
559562
StaticArrays.SArray{S}(xs)

0 commit comments

Comments
 (0)