Skip to content

Commit 462d40c

Browse files
make undefmatrix not a labelled one
1 parent 06296e1 commit 462d40c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LabelledArrays.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ function ArrayInterfaceCore.ismutable(::Type{<:LArray{T, N, Syms}}) where {T, N,
6464
end
6565
ArrayInterfaceCore.can_setindex(::Type{<:SLArray}) = false
6666

67+
function ArrayInterfaceCore.undefmatrix(x::LArray{T, N, Syms}) where {T, N, Syms}
68+
similar(x.__x,length(Syms),length(Syms))
69+
end
70+
6771
function PreallocationTools.get_tmp(dc::PreallocationTools.DiffCache,
6872
u::LArray{T, N, D, Syms}) where {T <: ForwardDiff.Dual,
6973
N, D, Syms}

0 commit comments

Comments
 (0)