Skip to content

Commit 70e4a0a

Browse files
committed
overload linalg for SparseFloat op DenseDual
1 parent 11ae318 commit 70e4a0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dual.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,9 @@ end
817817

818818
for MT in (StridedMatrix{<:LinearAlgebra.BlasFloat},
819819
LowerTriangular{<:LinearAlgebra.BlasFloat},
820-
UpperTriangular{<:LinearAlgebra.BlasFloat})
820+
UpperTriangular{<:LinearAlgebra.BlasFloat},
821+
SparseMatrixCSC{<:LinearAlgebra.BlasFloat}
822+
)
821823

822824
@eval Base.:\(m::$MT, x::StridedMatrix{<:Dual}) =
823825
_map_dual_components!((y, x) -> ldiv!(y, m, x), (y, x, _) -> ldiv!(y, m, x), similar(x), x)

0 commit comments

Comments
 (0)