diff --git a/Project.toml b/Project.toml index 5326c20b7..4823059f8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LinearSolve" uuid = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" authors = ["SciML"] -version = "1.2.2" +version = "1.2.3" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/factorization.jl b/src/factorization.jl index 8a8a1bc8d..5fd5aa341 100644 --- a/src/factorization.jl +++ b/src/factorization.jl @@ -38,7 +38,7 @@ function do_factorization(alg::LUFactorization, A, b, u) A isa Union{AbstractMatrix,AbstractDiffEqOperator} || error("LU is not defined for $(typeof(A))") - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end fact = lu!(A, alg.pivot) @@ -63,7 +63,7 @@ function init_cacheval(alg::UMFPACKFactorization, A, b, u, Pl, Pr, maxiters, abs end function do_factorization(::UMFPACKFactorization, A, b, u) - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end if A isa SparseMatrixCSC @@ -75,7 +75,7 @@ end function SciMLBase.solve(cache::LinearCache, alg::UMFPACKFactorization) A = cache.A - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end if cache.isfresh @@ -103,7 +103,7 @@ function init_cacheval(alg::KLUFactorization, A, b, u, Pl, Pr, maxiters, abstol, end function do_factorization(::KLUFactorization, A, b, u) - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end if A isa SparseMatrixCSC @@ -115,7 +115,7 @@ end function SciMLBase.solve(cache::LinearCache, alg::KLUFactorization) A = cache.A - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end if cache.isfresh @@ -158,7 +158,7 @@ function do_factorization(alg::QRFactorization, A, b, u) A isa Union{AbstractMatrix,AbstractDiffEqOperator} || error("QR is not defined for $(typeof(A))") - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end if alg.inplace @@ -182,7 +182,7 @@ function do_factorization(alg::SVDFactorization, A, b, u) A isa Union{AbstractMatrix,AbstractDiffEqOperator} || error("SVD is not defined for $(typeof(A))") - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end @@ -203,7 +203,7 @@ function do_factorization(alg::GenericFactorization, A, b, u) A isa Union{AbstractMatrix,AbstractDiffEqOperator} || error("GenericFactorization is not defined for $(typeof(A))") - if A isa AbstractDiffEqOperator + if A isa DiffEqArrayOperator A = A.A end fact = alg.fact_alg(A)