From 4fdcaa8c9af2dd34ae44d21fa14e6a0c6c1512e2 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 7 Mar 2023 20:45:31 +0100 Subject: [PATCH 1/2] remove specialization of Adapt.adapt_storage for StaticArraysCore.SArray (#389) --- lib/ArrayInterfaceStaticArraysCore/Project.toml | 2 -- .../src/ArrayInterfaceStaticArraysCore.jl | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ArrayInterfaceStaticArraysCore/Project.toml b/lib/ArrayInterfaceStaticArraysCore/Project.toml index 69b08ecb7..0e393ebfe 100644 --- a/lib/ArrayInterfaceStaticArraysCore/Project.toml +++ b/lib/ArrayInterfaceStaticArraysCore/Project.toml @@ -3,13 +3,11 @@ uuid = "dd5226c6-a4d4-4bc7-8575-46859f9c95b9" version = "0.1.3" [deps] -Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" [compat] -Adapt = "3" ArrayInterfaceCore = "0.1.22" StaticArraysCore = "1" julia = "1.6" diff --git a/lib/ArrayInterfaceStaticArraysCore/src/ArrayInterfaceStaticArraysCore.jl b/lib/ArrayInterfaceStaticArraysCore/src/ArrayInterfaceStaticArraysCore.jl index 9a8d0146f..ebba5e321 100644 --- a/lib/ArrayInterfaceStaticArraysCore/src/ArrayInterfaceStaticArraysCore.jl +++ b/lib/ArrayInterfaceStaticArraysCore/src/ArrayInterfaceStaticArraysCore.jl @@ -1,6 +1,6 @@ module ArrayInterfaceStaticArraysCore -import StaticArraysCore, ArrayInterfaceCore, Adapt +import StaticArraysCore, ArrayInterfaceCore using LinearAlgebra function ArrayInterfaceCore.undefmatrix(::StaticArraysCore.MArray{S, T, N, L}) where {S, T, N, L} @@ -28,6 +28,4 @@ function ArrayInterfaceCore.restructure(x::StaticArraysCore.SArray{S,T,N}, y::St end ArrayInterfaceCore.restructure(x::StaticArraysCore.SArray{S}, y) where {S} = StaticArraysCore.SArray{S}(y) -Adapt.adapt_storage(::Type{<:StaticArraysCore.SArray{S}}, xs::Array) where {S} = SArray{S}(xs) - end From 8548c0149f53c7f8702f36518eb4f0dd68a76182 Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 7 Mar 2023 14:47:04 -0500 Subject: [PATCH 2/2] Bump ArrayInterfaceStaticArraysCore version --- lib/ArrayInterfaceStaticArraysCore/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ArrayInterfaceStaticArraysCore/Project.toml b/lib/ArrayInterfaceStaticArraysCore/Project.toml index 0e393ebfe..428e4e5ca 100644 --- a/lib/ArrayInterfaceStaticArraysCore/Project.toml +++ b/lib/ArrayInterfaceStaticArraysCore/Project.toml @@ -1,6 +1,6 @@ name = "ArrayInterfaceStaticArraysCore" uuid = "dd5226c6-a4d4-4bc7-8575-46859f9c95b9" -version = "0.1.3" +version = "0.1.4" [deps] ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"