Skip to content

Commit d4ff3f3

Browse files
Merge pull request #481 from SciML/dedataarray_linalg
some enhancements to DEDataArray linear algebra
2 parents b3d4f0f + 682d057 commit d4ff3f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data_array.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ 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)
131+
132+
Base.unsafe_convert(::Type{Ptr{T}}, a::DEDataArray{T}) where {T} = Base.unsafe_convert(Ptr{T}, getfield(a,:x))
133+
ArrayInterface.zeromatrix(x::DEDataArray) = ArrayInterface.zeromatrix(x.x)
130134

131135
################# Broadcast ####################################################
132136

0 commit comments

Comments
 (0)