Skip to content

Commit 0a4b355

Browse files
committed
Fixes
1 parent 14cb102 commit 0a4b355

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

DifferentiationInterface/ext/DifferentiationInterfaceSparseMatrixColoringsExt/hessian.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ end
7979
function DI.hessian!(
8080
f::F,
8181
hess,
82-
prep::SparseHessianPrep{<:DI.BatchSizeSettings{B}},
82+
prep::SparseHessianPrep{SIG,<:DI.BatchSizeSettings{B}},
8383
backend::AutoSparse,
8484
x,
8585
contexts::Vararg{DI.Context,C},
86-
) where {F,B,C}
86+
) where {F,SIG,B,C}
8787
DI.check_prep(f, prep, backend, x, contexts...)
8888
(;
8989
batch_size_settings,
@@ -124,8 +124,8 @@ function DI.hessian!(
124124
end
125125

126126
function DI.hessian(
127-
f::F, prep::SparseHessianPrep{B}, backend::AutoSparse, x, contexts::Vararg{DI.Context,C}
128-
) where {F,B,C}
127+
f::F, prep::SparseHessianPrep, backend::AutoSparse, x, contexts::Vararg{DI.Context,C}
128+
) where {F,C}
129129
DI.check_prep(f, prep, backend, x, contexts...)
130130
hess = similar(sparsity_pattern(prep), eltype(x))
131131
return DI.hessian!(f, hess, prep, backend, x, contexts...)

DifferentiationInterface/ext/DifferentiationInterfaceSparseMatrixColoringsExt/jacobian.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ end
260260
function _sparse_jacobian_aux!(
261261
f_or_f!y::FY,
262262
jac,
263-
prep::PushforwardSparseJacobianPrep{<:DI.BatchSizeSettings{B}},
263+
prep::PushforwardSparseJacobianPrep{SIG,<:DI.BatchSizeSettings{B}},
264264
backend::AutoSparse,
265265
x,
266266
contexts::Vararg{DI.Context,C},
267-
) where {FY,B,C}
267+
) where {FY,SIG,B,C}
268268
(;
269269
batch_size_settings,
270270
coloring_result,
@@ -306,11 +306,11 @@ end
306306
function _sparse_jacobian_aux!(
307307
f_or_f!y::FY,
308308
jac,
309-
prep::PullbackSparseJacobianPrep{<:DI.BatchSizeSettings{B}},
309+
prep::PullbackSparseJacobianPrep{SIG,<:DI.BatchSizeSettings{B}},
310310
backend::AutoSparse,
311311
x,
312312
contexts::Vararg{DI.Context,C},
313-
) where {FY,B,C}
313+
) where {FY,SIG,B,C}
314314
(;
315315
batch_size_settings,
316316
coloring_result,

DifferentiationInterface/ext/DifferentiationInterfaceSparseMatrixColoringsExt/jacobian_mixed.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ function _sparse_jacobian_aux!(
164164
f_or_f!y::FY,
165165
jac,
166166
prep::MixedModeSparseJacobianPrep{
167-
<:DI.BatchSizeSettings{Bf},<:DI.BatchSizeSettings{Br}
167+
SIG,<:DI.BatchSizeSettings{Bf},<:DI.BatchSizeSettings{Br}
168168
},
169169
backend::AutoSparse,
170170
x,
171171
contexts::Vararg{DI.Context,C},
172-
) where {FY,Bf,Br,C}
172+
) where {FY,SIG,Bf,Br,C}
173173
(;
174174
batch_size_settings_forward,
175175
batch_size_settings_reverse,

0 commit comments

Comments
 (0)