Skip to content

Commit 70142be

Browse files
Merge pull request #115 from SciML/arrayinterface
add arrayinterface overloads
2 parents bd4ebe3 + fa93670 commit 70142be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
version:
1717
- '1'
1818
- '1.6'
19-
- 'nightly'
2019
steps:
2120
- uses: actions/checkout@v2
2221
- uses: julia-actions/setup-julia@v1

src/LabelledArrays.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ end
5555
Base.NamedTuple(x::Union{LArray,SLArray}) = NamedTuple{symnames(typeof(x))}(x.__x)
5656
@inline Base.reshape(a::SLArray, s::Size) = StaticArrays.similar_type(a, s)(Tuple(a))
5757

58+
function ArrayInterface.ismutable(::Type{<:LArray{T,N,Syms}}) where {T,N,Syms}
59+
ArrayInterface.ismutable(T)
60+
end
61+
ArrayInterface.can_setindex(::Type{<:SLArray}) = false
62+
5863
export SLArray, LArray, SLVector, LVector, @SLVector, @LArray, @LVector, @SLArray
5964

6065
export @SLSliced, @LSliced

0 commit comments

Comments
 (0)