Skip to content

Commit 72c05e6

Browse files
Merge pull request #571 from SciML/ChrisRackauckas-patch-2
Bump zygote for 0.7
2 parents 98700f2 + 672a018 commit 72c05e6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ LinearSolvePardisoExt = "Pardiso"
6262
LinearSolveRecursiveArrayToolsExt = "RecursiveArrayTools"
6363

6464
[compat]
65-
AllocCheck = "0.1"
65+
AllocCheck = "0.2"
6666
Aqua = "0.8"
6767
ArrayInterface = "7.7"
6868
BandedMatrices = "1.5"
@@ -115,7 +115,7 @@ StaticArrays = "1.5"
115115
StaticArraysCore = "1.4.2"
116116
Test = "1"
117117
UnPack = "1"
118-
Zygote = "0.6.69"
118+
Zygote = "0.7"
119119
julia = "1.10"
120120

121121
[extras]

src/factorization.jl

+8-1
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,19 @@ function init_cacheval(alg::QRFactorization, A, b, u, Pl, Pr,
213213
ArrayInterface.qr_instance(convert(AbstractMatrix, A), alg.pivot)
214214
end
215215

216-
function init_cacheval(alg::QRFactorization, A::Symmetric, b, u, Pl, Pr,
216+
function init_cacheval(alg::QRFactorization, A::Symmetric{<:Number, <:Array}, b, u, Pl, Pr,
217217
maxiters::Int, abstol, reltol, verbose::Bool,
218218
assumptions::OperatorAssumptions)
219219
return qr(convert(AbstractMatrix, A), alg.pivot)
220220
end
221221

222+
function init_cacheval(
223+
alg::QRFactorization, A::Symmetric{<:Number, <:SparseMatrixCSC}, b, u, Pl, Pr,
224+
maxiters::Int, abstol, reltol, verbose::Bool,
225+
assumptions::OperatorAssumptions)
226+
return nothing
227+
end
228+
222229
const PREALLOCATED_QR_ColumnNorm = ArrayInterface.qr_instance(rand(1, 1), ColumnNorm())
223230

224231
function init_cacheval(alg::QRFactorization{ColumnNorm}, A::Matrix{Float64}, b, u, Pl, Pr,

0 commit comments

Comments
 (0)