Skip to content

Commit e9aba6f

Browse files
committed
Allow Factorization
1 parent a80c8ee commit e9aba6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ImplicitDifferentiation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using DifferentiationInterface:
2020
pullback,
2121
pushforward
2222
using KrylovKit: linsolve, lssolve
23-
using LinearAlgebra: factorize
23+
using LinearAlgebra: Factorization, factorize
2424

2525
include("utils.jl")
2626
include("settings.jl")

src/settings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Specify that linear systems `Ax = b` should be solved with a direct method.
1919
struct DirectLinearSolver <: AbstractSolver end
2020

2121
function (solver::DirectLinearSolver)(
22-
A::AbstractMatrix, _Aᵀ, b::AbstractVector, x0::AbstractVector
22+
A::Union{AbstractMatrix,Factorization}, _Aᵀ, b::AbstractVector, x0::AbstractVector
2323
)
2424
return A \ b
2525
end

0 commit comments

Comments
 (0)