Skip to content

Commit

Permalink
delete optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jul 30, 2024
1 parent 83e7dd9 commit e520267
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/ArrayInterfaceStaticArraysCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ ArrayInterface.can_setindex(::Type{<:StaticArray}) = false
ArrayInterface.can_setindex(::Type{<:MArray}) = true
ArrayInterface.buffer(A::Union{SArray, MArray}) = getfield(A, :data)

function ArrayInterface.lu_instance(A::SMatrix{N,N}) where {N}
LU(LowerTriangular(A), UpperTriangular(A), SVector{N}(1:N))
end

function ArrayInterface.lu_instance(A::StaticMatrix{N,N}) where {N}
lu(one(A))
end
Expand Down

0 comments on commit e520267

Please sign in to comment.