Skip to content

Commit 682d057

Browse files
add some more DEDataArray linear algebra
1 parent f053e8b commit 682d057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/data_array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ end
127127
LinearAlgebra.ldiv!(A::DEDataArray,F::Factorization, B::DEDataArray) = ldiv!(A.x,F,B.x)
128128
LinearAlgebra.ldiv!(F::Factorization, B::DEDataArray) = ldiv!(F, B.x)
129129
LinearAlgebra.ldiv!(F::Factorization,A::Base.ReshapedArray{T1,T2,T3,T4}) where {T1,T2,T3<:DEDataArray,T4} = ldiv!(F,vec(A.parent.x))
130+
Base.:+(::LinearAlgebra.UniformScaling,x::DEDataArray) = DiffEqBase.copy_fields(I + x.x,x)
130131

131132
Base.unsafe_convert(::Type{Ptr{T}}, a::DEDataArray{T}) where {T} = Base.unsafe_convert(Ptr{T}, getfield(a,:x))
132133
ArrayInterface.zeromatrix(x::DEDataArray) = ArrayInterface.zeromatrix(x.x)

0 commit comments

Comments
 (0)