Skip to content

Commit df0b598

Browse files
Merge pull request #451 from oscardssmith/os/partially-revert-refactor-StaticArrays-ext
revert #449
2 parents 61bfe08 + e520267 commit df0b598

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"
1515
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
1616
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1717
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
18-
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
18+
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
1919
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
2020

2121
[extensions]
@@ -27,7 +27,7 @@ ArrayInterfaceChainRulesExt = "ChainRules"
2727
ArrayInterfaceGPUArraysCoreExt = "GPUArraysCore"
2828
ArrayInterfaceReverseDiffExt = "ReverseDiff"
2929
ArrayInterfaceSparseArraysExt = "SparseArrays"
30-
ArrayInterfaceStaticArraysExt = "StaticArrays"
30+
ArrayInterfaceStaticArraysCoreExt = "StaticArraysCore"
3131
ArrayInterfaceTrackerExt = "Tracker"
3232

3333
[compat]

ext/ArrayInterfaceStaticArraysExt.jl renamed to ext/ArrayInterfaceStaticArraysCoreExt.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module ArrayInterfaceStaticArraysExt
1+
module ArrayInterfaceStaticArraysCoreExt
22

33
import ArrayInterface
44
using LinearAlgebra
5-
import StaticArrays: SArray, SMatrix, SVector, StaticMatrix, StaticArray, SizedArray, MArray, MMatrix, LU
5+
import StaticArraysCore: SArray, SMatrix, SVector, StaticMatrix, StaticArray, SizedArray, MArray, MMatrix
66

77
function ArrayInterface.undefmatrix(::MArray{S, T, N, L}) where {S, T, N, L}
88
return MMatrix{L, L, T, L*L}(undef)
@@ -21,10 +21,6 @@ ArrayInterface.can_setindex(::Type{<:StaticArray}) = false
2121
ArrayInterface.can_setindex(::Type{<:MArray}) = true
2222
ArrayInterface.buffer(A::Union{SArray, MArray}) = getfield(A, :data)
2323

24-
function ArrayInterface.lu_instance(A::SMatrix{N,N}) where {N}
25-
LU(LowerTriangular(A), UpperTriangular(A), SVector{N}(1:N))
26-
end
27-
2824
function ArrayInterface.lu_instance(A::StaticMatrix{N,N}) where {N}
2925
lu(one(A))
3026
end

0 commit comments

Comments
 (0)