We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a3f73 commit f404d70Copy full SHA for f404d70
Project.toml
@@ -1,6 +1,6 @@
1
name = "ArrayInterface"
2
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
-version = "2.10.0"
+version = "2.11.0"
4
5
[deps]
6
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
src/ArrayInterface.jl
@@ -554,6 +554,9 @@ function __init__()
554
StaticArrays.SArray{S}(y)
555
end
556
557
+ known_first(::Type{<:StaticArrays.SOneTo}) = 1
558
+ known_last(::Type{StaticArrays.SOneTo{N}}) where {N} = N
559
+
560
@require Adapt="79e6a3ab-5dfb-504d-930d-738a2a938a0e" begin
561
function Adapt.adapt_storage(::Type{<:StaticArrays.SArray{S}},xs::Array) where S
562
StaticArrays.SArray{S}(xs)
0 commit comments