Skip to content

Commit 55ae824

Browse files
Merge pull request #2664 from jClugstor/undefined_fixes
Fix undefined res and spzeros
2 parents 1500738 + 58c686b commit 55ae824

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/OrdinaryDiffEqDifferentiation/src/OrdinaryDiffEqDifferentiation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using DiffEqBase
1313
import LinearAlgebra
1414
import LinearAlgebra: Diagonal, I, UniformScaling, diagind, mul!, lmul!, axpby!, opnorm, lu
1515
import LinearAlgebra: LowerTriangular, UpperTriangular
16-
import SparseArrays: SparseMatrixCSC, AbstractSparseMatrix, nonzeros, sparse
16+
import SparseArrays: SparseMatrixCSC, AbstractSparseMatrix, nonzeros, sparse, spzeros
1717
import ArrayInterface
1818

1919
import StaticArrayInterface

lib/OrdinaryDiffEqDifferentiation/src/operators.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,11 @@ function JVPCache(f::DiffEqBase.AbstractDiffEqFunction, du, u, p, t; autodiff)
4242
return JVPCache{eltype(du)}(jvp_op, f, du, u, p, t)
4343
end
4444

45-
function (op::JVPCache)(v, u, p, t)
46-
op.jvp_op(op.du, v, u, p, t)
47-
return res
48-
end
49-
5045
function (op::JVPCache)(Jv, v, u, p, t)
5146
op.jvp_op(Jv, v, u, p, t)
5247
return Jv
5348
end
5449

55-
Base.:*(J::JVPCache, v::AbstractArray) = J.jvp_op(v, J.u, J.p, J.t)
56-
Base.:*(J::JVPCache, v::Number) = J.jvp_op(v, J.u, J.p, J.t)
57-
5850
function LinearAlgebra.mul!(
5951
Jv::AbstractArray, J::JVPCache, v::AbstractArray)
6052
J.jvp_op(Jv, v, J.u, J.p, J.t)

0 commit comments

Comments
 (0)