Skip to content

Commit 4bfd6ce

Browse files
authored
Fixed can_setindex for MArray
can_setindex now evaluates to true for Type{<:StaticArraysCore.MArray}
1 parent 43748d9 commit 4bfd6ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ArrayInterfaceStaticArraysCoreExt.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ArrayInterface.ismutable(::Type{<:StaticArraysCore.MArray}) = true
2424
ArrayInterface.ismutable(::Type{<:StaticArraysCore.SizedArray}) = true
2525

2626
ArrayInterface.can_setindex(::Type{<:StaticArraysCore.StaticArray}) = false
27+
ArrayInterface.can_setindex(::Type{<:StaticArraysCore.MArray}) = true
2728
ArrayInterface.buffer(A::Union{StaticArraysCore.SArray,StaticArraysCore.MArray}) = getfield(A, :data)
2829

2930
function ArrayInterface.lu_instance(_A::StaticArraysCore.StaticMatrix{N,N}) where {N}

0 commit comments

Comments
 (0)