Skip to content

Commit fbeaa29

Browse files
committed
overload linalg for SparseFloat op DenseDual
1 parent 1a2f518 commit fbeaa29

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
@@ -825,7 +825,9 @@ end
825825

826826
for MT in (StridedMatrix{<:LinearAlgebra.BlasFloat},
827827
LowerTriangular{<:LinearAlgebra.BlasFloat},
828-
UpperTriangular{<:LinearAlgebra.BlasFloat})
828+
UpperTriangular{<:LinearAlgebra.BlasFloat},
829+
SparseMatrixCSC{<:LinearAlgebra.BlasFloat}
830+
)
829831

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

0 commit comments

Comments
 (0)