File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/SciMLJacobianOperators/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -410,24 +410,24 @@ function Base.copy(J::JacobianOperator)
410
410
J. jvp_op,
411
411
J. vjp_op,
412
412
copy (J. size),
413
- isnothing ( J. input_cache) ? nothing : copy (J. input_cache),
414
- isnothing ( J. output_cache) ? nohting : copy (J. output_cache)
413
+ J. input_cache === nothing ? nothing : copy (J. input_cache),
414
+ J. output_cache === nothing ? nohting : copy (J. output_cache)
415
415
)
416
416
end
417
417
418
418
function Base. copy (J:: StatefulJacobianOperator )
419
419
return StatefulJacobianOperator (
420
420
copy (J. jac_op),
421
- isnothing ( J. u) ? nothing : copy (J. u),
422
- isnothing ( J. p) ? nothing : copy (J. p)
421
+ J. u === nothing ? nothing : copy (J. u),
422
+ J. p === nothing ? nothing : copy (J. p)
423
423
)
424
424
end
425
425
426
426
function Base. copy (J:: StatefulJacobianNormalFormOperator )
427
427
return StatefulJacobianNormalFormOperator (
428
- isnothing ( J. vjp_operator) ? nothing : copy (J. vjp_operator),
429
- isnothing ( J. jvp_operator) ? nothing : copy (J. jvp_operator),
430
- isnothing ( J. cache) ? nothing : copy (J. cache)
428
+ J. vjp_operator === nothing ? nothing : copy (J. vjp_operator),
429
+ J. jvp_operator === nothing ? nothing : copy (J. jvp_operator),
430
+ J. cache === nothing ? nothing : copy (J. cache)
431
431
)
432
432
433
433
end
You can’t perform that action at this time.
0 commit comments