Skip to content

Commit f053e8b

Browse files
some enhancements to DEDataArray linear algebra
1 parent b3d4f0f commit f053e8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/data_array.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ LinearAlgebra.ldiv!(A::DEDataArray,F::Factorization, B::DEDataArray) = ldiv!(A.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))
130130

131+
Base.unsafe_convert(::Type{Ptr{T}}, a::DEDataArray{T}) where {T} = Base.unsafe_convert(Ptr{T}, getfield(a,:x))
132+
ArrayInterface.zeromatrix(x::DEDataArray) = ArrayInterface.zeromatrix(x.x)
133+
131134
################# Broadcast ####################################################
132135

133136
const DEDataArrayStyle = Broadcast.ArrayStyle{DEDataArray}

0 commit comments

Comments
 (0)