Skip to content

Commit 66077ed

Browse files
committed
overload linalg for SparseFloat op DenseDual
1 parent ed4337e commit 66077ed

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
@@ -848,7 +848,9 @@ end
848848

849849
for MT in (StridedMatrix{<:LinearAlgebra.BlasFloat},
850850
LowerTriangular{<:LinearAlgebra.BlasFloat},
851-
UpperTriangular{<:LinearAlgebra.BlasFloat})
851+
UpperTriangular{<:LinearAlgebra.BlasFloat},
852+
SparseMatrixCSC{<:LinearAlgebra.BlasFloat}
853+
)
852854

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

0 commit comments

Comments
 (0)