Skip to content

Commit 14fe2a5

Browse files
committed
comments
1 parent 6d302c2 commit 14fe2a5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/factorization.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ struct DiagonalFactorization <: AbstractFactorization end
381381

382382
function init_cacheval(alg::DiagonalFactorization, A, b, u, Pl, Pr, maxiters::Int,
383383
abstol, reltol, verbose::Bool, assumptions::OperatorAssumptions)
384+
# TODO - DiagonalFactorization should preinvert, and mul!
385+
#Diagonal(inv.(A.diag))
384386
nothing
385387
end
386388

src/iterative_wrappers.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ function SciMLBase.solve(cache::LinearCache, alg::KrylovJL; kwargs...)
151151
N = cache.Pr
152152

153153
# use no-op preconditioner for Krylov.jl (LinearAlgebra.I) when M/N is identity
154+
# TODO - https://github.com/JuliaSmoothOptimizers/Krylov.jl/issues/612#issuecomment-1227391841
154155
M = _isidentity_struct(M) ? I : InvertedOperator(M)
155156
N = _isidentity_struct(M) ? I : InvertedOperator(N)
156157

0 commit comments

Comments
 (0)